diff options
author | 2004-05-18 02:05:52 +0000 | |
---|---|---|
committer | 2004-05-18 02:05:52 +0000 | |
commit | 73b3e3c43784cb5fd04439d34c7436bbf85871db (patch) | |
tree | 71c634a881a5350ce76151ea76da19a38936af3a /lib/libc/gen/pwcache.c | |
parent | sync, libiberty bump, binutils changes (non-split info pages, mmalloc gone) (diff) | |
download | wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.tar.xz wireguard-openbsd-73b3e3c43784cb5fd04439d34c7436bbf85871db.zip |
ansify function definitions and zap some `register'
ok millert@
Diffstat (limited to 'lib/libc/gen/pwcache.c')
-rw-r--r-- | lib/libc/gen/pwcache.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c index 5f6a41ec7a9..78f31ef2302 100644 --- a/lib/libc/gen/pwcache.c +++ b/lib/libc/gen/pwcache.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: pwcache.c,v 1.6 2003/06/02 20:18:34 millert Exp $"; +static char rcsid[] = "$OpenBSD: pwcache.c,v 1.7 2004/05/18 02:05:52 jfb Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -42,9 +42,7 @@ static char rcsid[] = "$OpenBSD: pwcache.c,v 1.6 2003/06/02 20:18:34 millert Exp #define MASK (NCACHE - 1) /* bits to store with */ char * -user_from_uid(uid, nouser) - uid_t uid; - int nouser; +user_from_uid(uid_t uid, int nouser) { static struct ncache { uid_t uid; @@ -74,9 +72,7 @@ user_from_uid(uid, nouser) } char * -group_from_gid(gid, nogroup) - gid_t gid; - int nogroup; +group_from_gid(gid_t gid, int nogroup) { static struct ncache { gid_t gid; |