aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1997-03-26 15:42:09 +0000
committerDavid Nugent <davidn@FreeBSD.org>1997-03-26 15:42:09 +0000
commitc333ae82c14d17ff1cff73f12b1c08e86c40ba11 (patch)
tree9c9c4d23157ac3c4e239b9d247049bb0ba7b3d5b
parent1d29927ce61ad742e675fb0876caf829450d0864 (diff)
downloadsrc-c333ae82c14d17ff1cff73f12b1c08e86c40ba11.tar.gz
src-c333ae82c14d17ff1cff73f12b1c08e86c40ba11.zip
Remove minor warning (for -Wall -Wshadow); clarifies code.
Notes
Notes: svn path=/head/; revision=24288
-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 3cd9fdc09872..d1cec3e8b36d 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);
}