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.