]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use 'u_char *' type for input buffer pointer like in most similar cases
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 3 Jan 2018 12:47:25 +0000 (13:47 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 3 Jan 2018 12:47:25 +0000 (13:47 +0100)
smbutil.c

index 3f77310fc8b929fb75d69582b6bbdfaf372abb74..536cd30f3e9634176821daec55c026ad851b8b69 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -223,9 +223,9 @@ name_extract(netdissect_options *ndo,
  */
 static int
 name_len(netdissect_options *ndo,
-         const u_char *s, const unsigned char *maxbuf)
+         const u_char *s, const u_char *maxbuf)
 {
-    const unsigned char *s0 = s;
+    const u_char *s0 = s;
     unsigned char c;
 
     if (s >= maxbuf)
@@ -249,7 +249,7 @@ trunc:
 
 static void
 print_asc(netdissect_options *ndo,
-          const unsigned char *buf, int len)
+          const u_char *buf, int len)
 {
     int i;
     for (i = 0; i < len; i++)