diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-19 09:42:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-19 09:42:23 +0000 |
commit | 5ecc5933eaee11ce387ebbdf9fea38572843ecc6 (patch) | |
tree | d2ebc735e3d7aa6bc4e66786a58825efc4e7354a /lib/libc | |
parent | 624998fe3168ff774af7880a4ed174b959707308 (diff) |
gid_t is unsigned
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getgrent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c index 650a91d2e7c..df1f2a6d433 100644 --- a/lib/libc/gen/getgrent.c +++ b/lib/libc/gen/getgrent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getgrent.c,v 1.7 1997/07/09 00:28:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: getgrent.c,v 1.8 1997/12/19 09:42:22 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -270,7 +270,7 @@ grscan(search, gid, name) &data, &datalen); } else { char buf[20]; - sprintf(buf, "%d", gid); + sprintf(buf, "%u", gid); r = yp_match(__ypdomain, "group.bygid", buf, strlen(buf), |