summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorguy <guy>2004-05-26 19:57:57 +0000
committerguy <guy>2004-05-26 19:57:57 +0000
commit0c6a6e2ada3aba2ee1ffdfc1c1aae3dea9db97fd (patch)
treec28ad09dc19bed16e80a7835009106bf6b759c67 /print-ipx.c
parentbc84c5c5ec43ced8c7efff1509f39d6663e7d4de (diff)
downloadtcpdump-0c6a6e2ada3aba2ee1ffdfc1c1aae3dea9db97fd.tar.gz
From Steinar Haug <sthaug@nethelp.no>: put declarations inside a
function before all executable statements. Clean up white space.
Diffstat (limited to 'print-ipx.c')
-rw-r--r--print-ipx.c10
1 files changed, 5 insertions, 5 deletions
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);