From 4784fd00502c932c15af3692b8adb336d5bddfa4 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 2 Mar 2000 08:59:36 +0000 Subject: GCC doesn't mind switch (xxx) { ... default: } but Microsoft Visual C++ 6.0 insists that there be a statement following the "default:" label, and other compilers may do the same - put in a "break;" statement. svn path=/trunk/; revision=1681 --- packet-h1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packet-h1.c') diff --git a/packet-h1.c b/packet-h1.c index a2858b4b15..4946be3676 100644 --- a/packet-h1.c +++ b/packet-h1.c @@ -2,7 +2,7 @@ * Routines for Sinec H1 packet disassembly * Gerrit Gehnen * - * $Id: packet-h1.c,v 1.2 2000/03/02 07:38:02 guy Exp $ + * $Id: packet-h1.c,v 1.3 2000/03/02 08:59:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -233,6 +233,7 @@ dissect_h1 (const u_char * pd, int offset, frame_data * fd, proto_tree * tree) break; default: /* TODO: Add Default Handler. */ + break; } position += pd[offset + position + 1]; /* Goto next section */ } /* ..while */ -- cgit v1.2.1