diff options
author | julian <julian@FreeBSD.org> | 2008-06-29 01:04:48 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-06-29 01:04:48 +0000 |
commit | bacd933e9c56547754f48ba587fdce33edbb2417 (patch) | |
tree | 1d3c98d562de6d9f6e397bce3d1db06dd4ac5934 /sys/rpc/rpcb_clnt.c | |
parent | 4dcc97b12c61ad6e675735c3e7e377bc86d74ccc (diff) | |
download | FreeBSD-src-bacd933e9c56547754f48ba587fdce33edbb2417.zip FreeBSD-src-bacd933e9c56547754f48ba587fdce33edbb2417.tar.gz |
It may be #if 0'd out code, but change a varname to not shadow a global.
Diffstat (limited to 'sys/rpc/rpcb_clnt.c')
-rw-r--r-- | sys/rpc/rpcb_clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/rpc/rpcb_clnt.c b/sys/rpc/rpcb_clnt.c index ac3a312..9b23fb3 100644 --- a/sys/rpc/rpcb_clnt.c +++ b/sys/rpc/rpcb_clnt.c @@ -492,7 +492,7 @@ try_nconf: #if 0 static struct netconfig *loopnconf; - static char *hostname; + static char *localhostname; /* VARIABLES PROTECTED BY loopnconf_lock: loopnconf */ mutex_lock(&loopnconf_lock); @@ -527,9 +527,9 @@ try_nconf: _close(fd); tmpnconf = nconf; if (!strcmp(nconf->nc_protofmly, NC_INET)) - hostname = IN4_LOCALHOST_STRING; + localhostname = IN4_LOCALHOST_STRING; else - hostname = IN6_LOCALHOST_STRING; + localhostname = IN6_LOCALHOST_STRING; } } if (tmpnconf == NULL) { @@ -542,7 +542,7 @@ try_nconf: endnetconfig(nc_handle); } mutex_unlock(&loopnconf_lock); - client = getclnthandle(hostname, loopnconf, NULL); + client = getclnthandle(localhostname, loopnconf, NULL); return (client); #else return (NULL); |