diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 19:01:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 19:01:09 +0000 |
commit | fb2d40a9b43ac9a17a87f837ca7ba0b307ef7e98 (patch) | |
tree | d5c5b7db27a307b987267c18b8deacdf5b222c75 /lib/libc/gen | |
parent | 02748c634c0f2a48d333e7a2d406e5c71f0d99d5 (diff) |
uid_t is now a u_int32_t, treat it as such.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/getpwent.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 8076fdb6e62..728c8f3a6f7 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getpwent.c,v 1.5 1996/09/15 10:09:11 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getpwent.c,v 1.6 1996/09/16 19:01:08 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -643,12 +643,13 @@ struct passwd * getpwuid(uid_t uid) #else getpwuid(uid) - int uid; + uid_t uid; #endif { DBT key; char bf[sizeof(_pw_keynum) + 1]; - int keyuid, rval; + uid_t keyuid; + int rval; if (!_pw_db && !__initdb()) return((struct passwd *)NULL); @@ -664,7 +665,7 @@ getpwuid(uid) int s = -1; const char *host, *user, *dom; - sprintf(uidbuf, "%d", uid); + sprintf(uidbuf, "%u", uid); for(_pw_keynum=1; _pw_keynum; _pw_keynum++) { bf[0] = _PW_KEYBYNUM; bcopy((char *)&_pw_keynum, bf + 1, sizeof(_pw_keynum)); |