diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-06-19 01:16:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-06-19 01:16:44 +0000 |
commit | 133a5a43e996792a90d696f83bfb80202524e238 (patch) | |
tree | 2510069467ef285019a030f406956c664a0f0fd0 /libc/inet/rpc/pm_getport.c | |
parent | 9588159bf4646ec3fa5983cabbcb208f3e5496b3 (diff) |
dont shadow the socket() function
Diffstat (limited to 'libc/inet/rpc/pm_getport.c')
-rw-r--r-- | libc/inet/rpc/pm_getport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/rpc/pm_getport.c b/libc/inet/rpc/pm_getport.c index 2fca57800..327fb9101 100644 --- a/libc/inet/rpc/pm_getport.c +++ b/libc/inet/rpc/pm_getport.c @@ -68,13 +68,13 @@ pmap_getport (address, program, version, protocol) u_int protocol; { u_short port = 0; - int socket = -1; + int _socket = -1; CLIENT *client; struct pmap parms; address->sin_port = htons (PMAPPORT); client = clntudp_bufcreate (address, PMAPPROG, - PMAPVERS, timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); + PMAPVERS, timeout, &_socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE); if (client != (CLIENT *) NULL) { struct rpc_createerr *ce = &get_rpc_createerr (); @@ -95,7 +95,7 @@ pmap_getport (address, program, version, protocol) } CLNT_DESTROY (client); } - /* (void)__close(socket); CLNT_DESTROY already closed it */ + /* (void)__close(_socket); CLNT_DESTROY already closed it */ address->sin_port = 0; return port; } |