From 961fbf8dbcd62594ad9b833cb60788ea6bb3d4f9 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Sat, 8 Apr 2006 01:52:10 +0000 Subject: 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@ --- usr.sbin/tcpdump/smbutil.c | 7 +++---- 1 file 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 @@ -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++; -- cgit v1.2.3