Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
This commit is contained in:
parent
226d80b821
commit
cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue