X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3824a6c0417a551961d1a1bf4f94f10eff736afc..0b94dfec4bbc08e7bb1c1c6a187bd9c5ec38c8b6:/print-zephyr.c diff --git a/print-zephyr.c b/print-zephyr.c index a9833785..7c52e654 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. * @@ -18,6 +20,10 @@ * PURPOSE. */ +#ifndef lint +static const char rcsid[] _U_ = + "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.10 2007-08-09 18:47:27 hannes Exp $"; +#endif #ifdef HAVE_CONFIG_H #include "config.h" @@ -31,10 +37,6 @@ #include "interface.h" -#ifndef lint -static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.7 2003-11-15 00:39:44 guy Exp $"; -#endif struct z_packet { char *version; int numfields; @@ -138,6 +140,15 @@ zephyr_print(const u_char *cp, int length) char *s; int lose = 0; + /* squelch compiler warnings */ + + z.kind = 0; + z.class = 0; + z.inst = 0; + z.opcode = 0; + z.sender = 0; + z.recipient = 0; + #define PARSE_STRING \ s = parse_field(&parse, &parselen); \ if (!s) lose = 1;