summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getpwent.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-03-26 15:42:09 +0000
committerdavidn <davidn@FreeBSD.org>1997-03-26 15:42:09 +0000
commitf9d64bf51e1ca18a54d3d5f6f256c63bfde70bf0 (patch)
tree31c8e6952c6c4422db2fc01e5537ce317f699c15 /lib/libc/gen/getpwent.c
parente27bac84c505d7a1b656909477bf094d65e7096b (diff)
downloadFreeBSD-src-f9d64bf51e1ca18a54d3d5f6f256c63bfde70bf0.zip
FreeBSD-src-f9d64bf51e1ca18a54d3d5f6f256c63bfde70bf0.tar.gz
Remove minor warning (for -Wall -Wshadow); clarifies code.
Diffstat (limited to 'lib/libc/gen/getpwent.c')
-rw-r--r--lib/libc/gen/getpwent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 3cd9fdc..d1cec3e 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -691,12 +691,12 @@ _pw_breakout_yp(struct passwd *pw, char *res, int resultlen, int master)
}
static int
-_havemaster(char *_pw_yp_domain)
+_havemaster(char *_yp_domain)
{
int order;
int rval;
- if (!(rval = yp_order(_pw_yp_domain, "master.passwd.byname", &order)))
+ if (!(rval = yp_order(_yp_domain, "master.passwd.byname", &order)))
return(YP_HAVE_MASTER);
/*
@@ -708,7 +708,7 @@ _havemaster(char *_pw_yp_domain)
/* master.passwd doesn't exist -- try passwd.adjunct */
if (rval == YPERR_MAP) {
- rval = yp_order(_pw_yp_domain, "passwd.adjunct.byname", &order);
+ rval = yp_order(_yp_domain, "passwd.adjunct.byname", &order);
if (!rval)
return(YP_HAVE_ADJUNCT);
}
OpenPOWER on IntegriCloud