Re: [tcpdump-workers] Minor error in print-ipx.c

2004-05-26 Thread Guy Harris
On May 26, 2004, at 3:24 AM, [EMAIL PROTECTED] wrote:
gcc, at least on my FreeBSD 4.9 box, doesn't like an active statement
before the first declaration (compiling tcpdump-2004.05.20):
./print-ipx.c: In function `ipx_print':
./print-ipx.c:60: syntax error before `const'
I fixed it as shown below.
Checked in.
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.


[tcpdump-workers] Minor error in print-ipx.c

2004-05-26 Thread sthaug
gcc, at least on my FreeBSD 4.9 box, doesn't like an active statement
before the first declaration (compiling tcpdump-2004.05.20):

./print-ipx.c: In function `ipx_print':
./print-ipx.c:60: syntax error before `const'

I fixed it as shown below.

Steinar Haug, Nethelp consulting, [EMAIL PROTECTED]

--- print-ipx.c.origSat May  1 12:06:55 2004
+++ print-ipx.c Wed May 26 12:18:29 2004
@@ -54,10 +54,10 @@
 void
 ipx_print(const u_char *p, u_int length)
 {
+   const struct ipxHdr *ipx = (const struct ipxHdr *)p;
+
 if (!eflag)
 printf("IPX ");
-
-   const struct ipxHdr *ipx = (const struct ipxHdr *)p;
 
TCHECK(ipx->srcSkt);
(void)printf("%s.%04x > ",
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.