From: jan@unixpapa.com Date: Wed, 1 Feb 2012 11:54:01 +0000 (+0000) Subject: Don't define "uid" if SERVER_UID not defined. X-Git-Tag: pwauth-2.3.11~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e9bbc6b0926ed6c382d1d85f4c88d0e77b6cad8;p=pwauth Don't define "uid" if SERVER_UID not defined. --- diff --git a/pwauth/CHANGES b/pwauth/CHANGES index 281add6..7200f2e 100644 --- a/pwauth/CHANGES +++ b/pwauth/CHANGES @@ -1,6 +1,9 @@ Pwauth Change Log ================= +VERSION 2.3.11 - + - Don't define "uid" variable if SERVER_UID is not defined. + VERSION 2.3.10 - Oct 5, 2011 - Changed the serialized sleep code in snooze.c to use fcntl() locking instead of flock() locking. Fcntl() locking is a POSIX standard and diff --git a/pwauth/main.c b/pwauth/main.c index ea9e9c7..5dda8db 100644 --- a/pwauth/main.c +++ b/pwauth/main.c @@ -52,7 +52,10 @@ main(int argc, char **argv) char login[BFSZ+1], passwd[BFSZ+1]; char *c, *strchr(); #endif - int uid,i; +#ifdef SERVER_UIDS + int uid; +#endif + int i; int status; struct rlimit rlim;