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/cmd/ip/dhcpd/dhcpd.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/cmd/ip/dhcpd/dhcpd.c') diff --git a/src/cmd/ip/dhcpd/dhcpd.c b/src/cmd/ip/dhcpd/dhcpd.c index 3b0873c2..ae4bd223 100755 --- a/src/cmd/ip/dhcpd/dhcpd.c +++ b/src/cmd/ip/dhcpd/dhcpd.c @@ -12,9 +12,9 @@ int bwfd; int wfd; -// -// ala rfc2131 -// +/* */ +/* ala rfc2131 */ +/* */ typedef struct Req Req; struct Req @@ -63,7 +63,7 @@ int slow; char net[256]; uchar xmyipaddr[IPaddrlen]; -int pptponly; // only answer request that came from the pptp server +int pptponly; /* only answer request that came from the pptp server */ int mute; int minlease = MinLease; @@ -160,7 +160,7 @@ char *optname[256] = [ODvendorclass] "vendorclass", [ODclientid] "cid", [ODtftpserver] "tftpserver", -[ODbootfile] "bf", +[ODbootfile] "bf" }; void addropt(Req*, int, uchar*); @@ -1131,8 +1131,8 @@ miscoptions(Req *rp, uchar *ip) addropt(rp, OBrouter, rp->giaddr); } - // OBhostname for the HP4000M switches - // (this causes NT to log infinite errors - tough shit ) + /* OBhostname for the HP4000M switches */ + /* (this causes NT to log infinite errors - tough shit ) */ if(*rp->ii.domain){ remrequested(rp, OBhostname); stringopt(rp, OBhostname, rp->ii.domain); @@ -1236,10 +1236,10 @@ miscoptions(Req *rp, uchar *ip) break; } - // add plan9 specific options + /* add plan9 specific options */ if(strncmp((char*)rp->vendorclass, "plan9_", 6) == 0 || strncmp((char*)rp->vendorclass, "p9-", 3) == 0){ - // point to temporary area + /* point to temporary area */ op = rp->p; omax = rp->max; rp->p = vopts; @@ -1250,7 +1250,7 @@ miscoptions(Req *rp, uchar *ip) j = lookupserver("auth", addrs, t); addrsopt(rp, OP9auth, addrs, j); - // point back + /* point back */ j = rp->p - vopts; rp->p = op; rp->max = omax; @@ -1544,7 +1544,7 @@ char *dhcpmsgname[] = [Ack] "Ack", [Nak] "Nak", [Release] "Release", - [Inform] "Inform", + [Inform] "Inform" }; void -- cgit v1.2.3