]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Declare the packet type enum as an "enum z_packet_type" without
authorguy <guy>
Tue, 5 Mar 2002 11:33:25 +0000 (11:33 +0000)
committerguy <guy>
Tue, 5 Mar 2002 11:33:25 +0000 (11:33 +0000)
declaring an object of that type, rather than declaring it as an
object with an anonymous enum type.  (The object wasn't actually used.)

print-zephyr.c

index 9727adaa789a03af52d4c511964d489bbc31c7c2..f526f07ceaac8b528e8e3d59403d5175de9fd24c 100644 (file)
@@ -20,7 +20,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.2 2001-09-11 02:37:12 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.3 2002-03-05 11:33:25 guy Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -56,7 +56,7 @@ struct z_packet {
     /* Other fields follow here.. */
 };
 
-enum {
+enum z_packet_type {
     Z_PACKET_UNSAFE = 0,
     Z_PACKET_UNACKED,
     Z_PACKET_ACKED,
@@ -66,7 +66,7 @@ enum {
     Z_PACKET_SERVNAK,
     Z_PACKET_CLIENTACK,
     Z_PACKET_STAT
-} z_packet_type;
+};
 
 static struct tok z_types[] = {
     { Z_PACKET_UNSAFE,         "unsafe" },