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/libauth/attr.c | 8 ++++---- src/libauth/auth_getuserpasswd.c | 2 +- src/libauth/auth_proxy.c | 2 +- src/libauth/auth_respond.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libauth') diff --git a/src/libauth/attr.c b/src/libauth/attr.c index d8ad9ab3..8adeefe6 100644 --- a/src/libauth/attr.c +++ b/src/libauth/attr.c @@ -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)); diff --git a/src/libauth/auth_getuserpasswd.c b/src/libauth/auth_getuserpasswd.c index 4a40b263..522304ce 100644 --- a/src/libauth/auth_getuserpasswd.c +++ b/src/libauth/auth_getuserpasswd.c @@ -4,7 +4,7 @@ #include "authlocal.h" enum { - ARgiveup = 100, + ARgiveup = 100 }; static int diff --git a/src/libauth/auth_proxy.c b/src/libauth/auth_proxy.c index 8761cc9d..257bafe7 100644 --- a/src/libauth/auth_proxy.c +++ b/src/libauth/auth_proxy.c @@ -6,7 +6,7 @@ #include "authlocal.h" enum { - ARgiveup = 100, + ARgiveup = 100 }; static uchar* diff --git a/src/libauth/auth_respond.c b/src/libauth/auth_respond.c index d39facfd..b3cf6665 100644 --- a/src/libauth/auth_respond.c +++ b/src/libauth/auth_respond.c @@ -5,7 +5,7 @@ #include "authlocal.h" enum { - ARgiveup = 100, + ARgiveup = 100 }; static int -- cgit v1.2.3