Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.

This commit is contained in:
rsc 2006-04-01 19:24:03 +00:00
parent 226d80b821
commit cbeb0b26e4
492 changed files with 3218 additions and 3167 deletions

View file

@ -144,10 +144,10 @@ _parseattr(char *s)
t = tok[i];
if(p = strchr(t, '=')){
*p++ = '\0';
// if(p-2 >= t && p[-2] == ':'){
// p[-2] = '\0';
// type = AttrDefault;
// }else
/* if(p-2 >= t && p[-2] == ':'){ */
/* p[-2] = '\0'; */
/* type = AttrDefault; */
/* }else */
type = AttrNameval;
a = _mkattr(type, t, p, a);
setmalloctag(a, getcallerpc(&s));

View file

@ -4,7 +4,7 @@
#include "authlocal.h"
enum {
ARgiveup = 100,
ARgiveup = 100
};
static int

View file

@ -6,7 +6,7 @@
#include "authlocal.h"
enum {
ARgiveup = 100,
ARgiveup = 100
};
static uchar*

View file

@ -5,7 +5,7 @@
#include "authlocal.h"
enum {
ARgiveup = 100,
ARgiveup = 100
};
static int