]> The Tcpdump Group git mirrors - tcpdump/commitdiff
SMB: Address a clang warning
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 30 Dec 2017 20:32:40 +0000 (21:32 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 30 Dec 2017 20:40:58 +0000 (21:40 +0100)
The warning was:
./print-smb.c:28:15: warning: no previous extern declaration for non-static
      variable 'startbuf' [-Wmissing-variable-declarations]
const u_char *startbuf = NULL;
              ^

print-smb.c

index f691491340af751171eeca4e2526df473ba5760a..b3f855bd1316242ebe4a5bd94145244a29b6246e 100644 (file)
@@ -25,6 +25,8 @@ static const char tstr[] = "[|SMB]";
 static int request = 0;
 static int unicodestr = 0;
 
+extern const u_char *startbuf;
+
 const u_char *startbuf = NULL;
 
 struct smbdescript {