It may be #if 0'd out code, but change a varname to not shadow a global.
This commit is contained in:
parent
c2ff90ef96
commit
316151d290
@ -492,7 +492,7 @@ local_rpcb()
|
||||
|
||||
#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 @@ local_rpcb()
|
||||
_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 @@ local_rpcb()
|
||||
endnetconfig(nc_handle);
|
||||
}
|
||||
mutex_unlock(&loopnconf_lock);
|
||||
client = getclnthandle(hostname, loopnconf, NULL);
|
||||
client = getclnthandle(localhostname, loopnconf, NULL);
|
||||
return (client);
|
||||
#else
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user