summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getgrouplist.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-07-09 00:28:18 +0000
committermillert <millert@openbsd.org>1997-07-09 00:28:18 +0000
commitb0f29dd7fdc54fae18c4ad8af2c7182822d83ca5 (patch)
treed8f675f872a9e2b6144d9effa31125cfa640dc82 /lib/libc/gen/getgrouplist.c
parentClarify strncat(3) count param. (diff)
downloadwireguard-openbsd-b0f29dd7fdc54fae18c4ad8af2c7182822d83ca5.tar.xz
wireguard-openbsd-b0f29dd7fdc54fae18c4ad8af2c7182822d83ca5.zip
Clean up some -Wall complaints.
Diffstat (limited to 'lib/libc/gen/getgrouplist.c')
-rw-r--r--lib/libc/gen/getgrouplist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getgrouplist.c b/lib/libc/gen/getgrouplist.c
index ae44c99cfe1..37cc2b5c5d5 100644
--- a/lib/libc/gen/getgrouplist.c
+++ b/lib/libc/gen/getgrouplist.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.4 1996/09/15 09:31:01 tholo Exp $";
+static char rcsid[] = "$OpenBSD: getgrouplist.c,v 1.5 1997/07/09 00:28:21 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -66,7 +66,7 @@ getgrouplist(uname, agroup, groups, grpcnt)
* Scan the group file to find additional groups.
*/
setgrent();
- while (grp = getgrent()) {
+ while ((grp = getgrent())) {
if (grp->gr_gid == agroup)
continue;
for (i = 0; grp->gr_mem[i]; i++) {