aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/icmp.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/ip/snoopy/icmp.c
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/ip/snoopy/icmp.c')
-rwxr-xr-xsrc/cmd/ip/snoopy/icmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/ip/snoopy/icmp.c b/src/cmd/ip/snoopy/icmp.c
index 274c955e..bf09f8d8 100755
--- a/src/cmd/ip/snoopy/icmp.c
+++ b/src/cmd/ip/snoopy/icmp.c
@@ -14,7 +14,7 @@ struct Hdr
enum
{
- ICMPLEN= 4,
+ ICMPLEN= 4
};
enum
@@ -41,7 +41,7 @@ enum
TSreq= 13,
TSrep= 14,
InfoReq= 15,
- InfoRep= 16,
+ InfoRep= 16
};
static Mux p_mux[] =
@@ -51,7 +51,7 @@ static Mux p_mux[] =
{"ip", Redirect, },
{"ip", TimeExceed, },
{"ip", ParamProb, },
- {0},
+ {0}
};
char *icmpmsg[236] =
@@ -66,7 +66,7 @@ char *icmpmsg[236] =
[TSreq] "TSreq",
[TSrep] "TSrep",
[InfoReq] "InfoReq",
-[InfoRep] "InfoRep",
+[InfoRep] "InfoRep"
};
static void
@@ -193,5 +193,5 @@ Proto icmp =
p_mux,
"%lud",
p_fields,
- defaultframer,
+ defaultframer
};