summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 18:10:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 18:10:25 +0000
commit6fd85eed13254bd5be426282eb42180ab2d807e6 (patch)
tree37fee839d5b30dd7040bf7796523f496a5c6e309 /usr.sbin/tcpdump
parent9ee0a18a60baf41a29f2af75e03e454ab716cf0e (diff)
fix glitches in unused source file; ok millert
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/smbutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/smbutil.c b/usr.sbin/tcpdump/smbutil.c
index a060bff39b5..a87def67f25 100644
--- a/usr.sbin/tcpdump/smbutil.c
+++ b/usr.sbin/tcpdump/smbutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smbutil.c,v 1.7 2009/10/27 23:59:57 deraadt Exp $ */
+/* $OpenBSD: smbutil.c,v 1.8 2013/04/16 18:10:24 deraadt Exp $ */
/*
Copyright (C) Andrew Tridgell 1995-1999
@@ -60,6 +60,7 @@ static time_t make_unix_date(const void *date_ptr)
if (dos_date == 0) return(0);
+ memset(&t, 0, sizeof t);
interpret_dos_date(dos_date,&t.tm_year,&t.tm_mon,
&t.tm_mday,&t.tm_hour,&t.tm_min,&t.tm_sec);
t.tm_wday = 1;
@@ -323,7 +324,6 @@ static const uchar *fdata1(const uchar *buf, const char *fmt, const uchar *maxbu
{
char bitfmt[128];
char *p = strchr(++fmt,'}');
- int l = PTR_DIFF(p,fmt);
strlcpy(bitfmt,fmt,sizeof(bitfmt));
fmt = p+1;
write_bits(CVAL(buf,0),bitfmt);