summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getnetgrent.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-05 18:22:00 +0000
committerjkh <jkh@FreeBSD.org>1996-12-05 18:22:00 +0000
commitd9e46a2d1ad8a223f05221279fb2d38533235a50 (patch)
treed8570fc26130a9db253b7fade551f48be50a4e29 /lib/libc/gen/getnetgrent.c
parent9f43ee66809f584e26627b5dbc9383872744ccf0 (diff)
downloadFreeBSD-src-d9e46a2d1ad8a223f05221279fb2d38533235a50.zip
FreeBSD-src-d9e46a2d1ad8a223f05221279fb2d38533235a50.tar.gz
_key is a char array and we don't need to pass its address to _buildkey()
when buildkey is expecting a char *.
Diffstat (limited to 'lib/libc/gen/getnetgrent.c')
-rw-r--r--lib/libc/gen/getnetgrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c
index 69d2d94..f0d7967 100644
--- a/lib/libc/gen/getnetgrent.c
+++ b/lib/libc/gen/getnetgrent.c
@@ -346,7 +346,7 @@ innetgr(group, host, user, dom)
if(yp_get_default_domain(&_netgr_yp_domain))
return(0);
- while(_buildkey(&_key, user ? user : host, dom, &rot)) {
+ while(_buildkey(_key, user ? user : host, dom, &rot)) {
if (!yp_match(_netgr_yp_domain, user? "netgroup.byuser":
"netgroup.byhost", _key, strlen(_key), &result,
&resultlen)) {
OpenPOWER on IntegriCloud