From: Francois-Xavier Le Bail Date: Sat, 30 Dec 2017 20:32:40 +0000 (+0100) Subject: SMB: Address a clang warning X-Git-Tag: tcpdump-4.99-bp~1560 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/d488edcccca3b15c7b1bc0a56ff0848d8da22354?hp=aa37262ac40d0a26f1607f0f79202c5685605aa0 SMB: Address a clang warning 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; ^ --- diff --git a/print-smb.c b/print-smb.c index f6914913..b3f855bd 100644 --- a/print-smb.c +++ b/print-smb.c @@ -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 {