X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/38082cac3604a182183c46c19c17d7e5504685a2..2075ea09c1535b547298fa47b51b2bfe41229032:/print-zephyr.c diff --git a/print-zephyr.c b/print-zephyr.c index d8c608e7..c94eeff0 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -18,11 +18,20 @@ * PURPOSE. */ +#ifndef lint +static const char rcsid[] = + "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.5 2002-08-01 08:53:35 risso Exp $"; +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + #include -#include #include #include -#include #include "interface.h" @@ -47,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, @@ -57,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" }, @@ -113,7 +122,7 @@ str_to_lower(char *string) string = z_buf; while (*string) { - *string = tolower(*string); + *string = tolower((unsigned char)(*string)); string++; }