]> The Tcpdump Group git mirrors - tcpdump/commitdiff
From Steinar Haug <[email protected]>: put declarations inside a
authorguy <guy>
Wed, 26 May 2004 19:57:57 +0000 (19:57 +0000)
committerguy <guy>
Wed, 26 May 2004 19:57:57 +0000 (19:57 +0000)
function before all executable statements.

Clean up white space.

CREDITS
print-ipx.c

diff --git a/CREDITS b/CREDITS
index 54a234fb9a7bb491aaec11d34c4d1f8dfdc81c59..93debe218740878cf19064d501395ae53dbde7f3 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -108,6 +108,7 @@ Additional people who have contributed patches:
        Scott Rose                      <[email protected]>
        Sebastian Krahmer               <[email protected]>
        Seth Webster                    <[email protected]>
+       Steinar Haug                    <[email protected]>
        Takashi Yamamoto                <[email protected]>
        Terry Kennedy                   <[email protected]>
        Timo Koskiahde
index 2bb56b8a412fe103d5d70be41b28b001f836bbf0..b5f6de6d2b574892fb2f10b571f283d88eb41312 100644 (file)
@@ -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);