From 0c6a6e2ada3aba2ee1ffdfc1c1aae3dea9db97fd Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 26 May 2004 19:57:57 +0000 Subject: [PATCH] From Steinar Haug : put declarations inside a function before all executable statements. Clean up white space. --- CREDITS | 1 + print-ipx.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CREDITS b/CREDITS index 54a234fb..93debe21 100644 --- a/CREDITS +++ b/CREDITS @@ -108,6 +108,7 @@ Additional people who have contributed patches: Scott Rose Sebastian Krahmer Seth Webster + Steinar Haug Takashi Yamamoto Terry Kennedy Timo Koskiahde diff --git a/print-ipx.c b/print-ipx.c index 2bb56b8a..b5f6de6d 100644 --- a/print-ipx.c +++ b/print-ipx.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.39 2004-05-01 10:06:55 hannes Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.40 2004-05-26 19:57:57 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -54,11 +54,11 @@ void ipx_rip_print(const u_short *, u_int); void ipx_print(const u_char *p, u_int length) { - if (!eflag) - printf("IPX "); - const struct ipxHdr *ipx = (const struct ipxHdr *)p; + if (!eflag) + printf("IPX "); + TCHECK(ipx->srcSkt); (void)printf("%s.%04x > ", ipxaddr_string(EXTRACT_32BITS(ipx->srcNet), ipx->srcNode), @@ -121,7 +121,7 @@ ipx_decode(const struct ipxHdr *ipx, const u_char *datap, u_int length) #endif break; case IPX_SKT_EIGRP: - eigrp_print(datap,length); + eigrp_print(datap, length); break; default: (void)printf("ipx-#%x %d", dstSkt, length); -- 2.39.5