summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-04-08 01:52:10 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-04-08 01:52:10 +0000
commit961fbf8dbcd62594ad9b833cb60788ea6bb3d4f9 (patch)
tree9d071856b9aa265d24d2d8a909241790011a8f10 /usr.sbin/tcpdump
parent52fc8fcc47083060533ec0bc6c60b452a4eeb7f0 (diff)
Since moritz@ says, ``this can't happen, because no fmt string
passed to fdata() uses a T-value not caught by the switch,'' change to a fatal error. OK jaredy@ and moritz@
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/smbutil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/tcpdump/smbutil.c b/usr.sbin/tcpdump/smbutil.c
index f01c39806b5..c0181ce5e74 100644
--- a/usr.sbin/tcpdump/smbutil.c
+++ b/usr.sbin/tcpdump/smbutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smbutil.c,v 1.4 2006/04/07 05:16:52 ray Exp $ */
+/* $OpenBSD: smbutil.c,v 1.5 2006/04/08 01:52:09 ray Exp $ */
/*
Copyright (C) Andrew Tridgell 1995-1999
@@ -13,7 +13,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/smbutil.c,v 1.4 2006/04/07 05:16:52 ray Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/smbutil.c,v 1.5 2006/04/08 01:52:09 ray Exp $";
#endif
#include <sys/param.h>
@@ -494,8 +494,7 @@ static const uchar *fdata1(const uchar *buf, const char *fmt, const uchar *maxbu
buf+=8;
break;
default:
- t = 0;
- break;
+ error("fdata1: invalid fmt: %s", fmt);
}
printf("%s",t?asctime(localtime(&t)):"NULL ");
fmt++; while (isdigit(*fmt)) fmt++;