X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/579c43edb15d8b1022af3cb2516076612617736d..9edc3462b3e3057f220817709e33b64c043cc6fb:/print-zephyr.c diff --git a/print-zephyr.c b/print-zephyr.c index f526f07c..88842f7f 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -1,6 +1,8 @@ /* * Decode and print Zephyr packets. * + * http://web.mit.edu/zephyr/doc/protocol + * * Copyright (c) 2001 Nickolai Zeldovich * All rights reserved. * @@ -19,19 +21,19 @@ */ #ifndef lint -static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.3 2002-03-05 11:33:25 guy Exp $"; +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.8.2.1 2005-04-21 06:51:24 guy Exp $"; #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include + #include -#include #include #include -#include #include "interface.h" @@ -48,7 +50,7 @@ struct z_packet { char *inst; char *opcode; char *sender; - char *recipient; + const char *recipient; char *format; int cksum; int multi; @@ -105,7 +107,7 @@ parse_field(char **pptr, int *len) } static const char * -z_triple(char *class, char *inst, char *recipient) +z_triple(char *class, char *inst, const char *recipient) { if (!*recipient) recipient = "*"; @@ -122,7 +124,7 @@ str_to_lower(char *string) string = z_buf; while (*string) { - *string = tolower(*string); + *string = tolower((unsigned char)(*string)); string++; }