From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/libip/eipfmt.c | 6 +++--- src/libip/myipaddr.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libip') 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) { -- cgit v1.2.3