aboutsummaryrefslogtreecommitdiff
path: root/src/libip
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/libip
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/libip')
-rw-r--r--src/libip/eipfmt.c6
-rw-r--r--src/libip/myipaddr.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libip/eipfmt.c b/src/libip/eipfmt.c
index bb715451..97d153a3 100644
--- a/src/libip/eipfmt.c
+++ b/src/libip/eipfmt.c
@@ -4,10 +4,10 @@
enum
{
- Isprefix= 16,
+ Isprefix= 16
};
-// XXX: manually initialize once to placate the Sun monster
+/* XXX: manually initialize once to placate the Sun monster */
uchar prefixvals[256];
#ifdef NOTDEF
uchar prefixvals[256] =
@@ -37,7 +37,7 @@ eipfmt(Fmt *f)
ushort s;
int i, j, n, eln, eli;
- static int once = 0; // XXX: placate the Sun monster
+ static int once = 0; /* XXX: placate the Sun monster */
if(!once){
once = 1;
diff --git a/src/libip/myipaddr.c b/src/libip/myipaddr.c
index a7149ffa..bbde18f7 100644
--- a/src/libip/myipaddr.c
+++ b/src/libip/myipaddr.c
@@ -15,8 +15,8 @@ static uchar loopbackmask[IPaddrlen] = {
0xff, 0, 0, 0
};
-// find first ip addr that isn't the friggin loopback address
-// unless there are no others
+/* find first ip addr that isn't the friggin loopback address */
+/* unless there are no others */
int
myipaddr(uchar *ip, char *net)
{