]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
Get "udp.h" from the tcpdump source tree, not from a system header file.
[tcpdump] / smbutil.c
index 4ddcf47ad5e52617104f6309b0fd666651337d88..a816ad11c28692931afb52d9de1dfc01dcdb23ed 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -11,7 +11,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.7 2000-07-10 04:38:26 assar Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.11 2000-09-28 06:43:09 guy Exp $";
 #endif
 
 #include <sys/param.h>
@@ -19,16 +19,14 @@ static const char rcsid[] =
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <net/if.h>
 
 #include <netinet/in.h>
-#include <netinet/if_ether.h>
 
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <time.h.
+#include <time.h>
 
 #include "interface.h"
 #include "smb.h"
@@ -526,7 +524,7 @@ const uchar *fdata(const uchar *buf, const char *fmt, const uchar *maxbuf)
     case '[':
       fmt++;
       if (buf>=maxbuf) return(buf);
-      bzero(s,sizeof(s));
+      memset(s, 0, sizeof(s));
       p = strchr(fmt,']');
       strncpy(s,fmt,p-fmt);
       fmt = p+1;