summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getgrouplist.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-04-17 17:40:36 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-04-17 17:40:36 +0000
commitf8ffcc0023521d2938d013a064aafa8b97fdc6c4 (patch)
treeeeb4e10404170c661ad78ddfadba9e51f222f564 /lib/libc/gen/getgrouplist.c
parent8f8f0c818581c09d982ddb812384f11f397421b3 (diff)
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
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 3faef2d898f..237abec4eeb 100644
--- a/lib/libc/gen/getgrouplist.c
+++ b/lib/libc/gen/getgrouplist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getgrouplist.c,v 1.21 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: getgrouplist.c,v 1.22 2013/04/17 17:40:35 tedu Exp $ */
/*
* Copyright (c) 2008 Ingo Schwarze <schwarze@usta.de>
* Copyright (c) 1991, 1993
@@ -202,7 +202,7 @@ getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
/* Construct the netid key to look up. */
if (getpwnam_r(uname, &pwstore, buf, sizeof buf, NULL) ||
- !__ypdomain && yp_get_default_domain(&__ypdomain))
+ (!__ypdomain && yp_get_default_domain(&__ypdomain)))
goto out;
asprintf(&key, "unix.%u@%s", pwstore.pw_uid, __ypdomain);
if (key == NULL)