Browse Source

sync with glibc and rename socket vars to _socket

Mike Frysinger 19 years ago
parent
commit
d3979e749b
1 changed files with 9 additions and 9 deletions
  1. 9 9
      libc/inet/rpc/pmap_clnt.c

+ 9 - 9
libc/inet/rpc/pmap_clnt.c

@@ -127,7 +127,7 @@ bool_t
 pmap_set (u_long program, u_long version, int protocol, u_short port)
 {
   struct sockaddr_in myaddress;
-  int socket = -1;
+  int _socket = -1;
   CLIENT *client;
   struct pmap parms;
   bool_t rslt;
@@ -135,7 +135,7 @@ pmap_set (u_long program, u_long version, int protocol, u_short port)
   if (!__get_myaddress (&myaddress))
     return FALSE;
   client = clntudp_bufcreate (&myaddress, PMAPPROG, PMAPVERS,
-			timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
+			timeout, &_socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
   if (client == (CLIENT *) NULL)
     return (FALSE);
   parms.pm_prog = program;
@@ -147,13 +147,13 @@ pmap_set (u_long program, u_long version, int protocol, u_short port)
 		 tottimeout) != RPC_SUCCESS)
     {
       clnt_perror (client, _("Cannot register service"));
-      return FALSE;
+      rslt = FALSE;
     }
   CLNT_DESTROY (client);
-  /* (void)close(socket); CLNT_DESTROY closes it */
+  /* (void)close(_socket); CLNT_DESTROY closes it */
   return rslt;
 }
-libc_hidden_def(pmap_set)
+libc_hidden_def (pmap_set)
 
 /*
  * Remove the mapping between program,version and port.
@@ -164,7 +164,7 @@ bool_t
 pmap_unset (u_long program, u_long version)
 {
   struct sockaddr_in myaddress;
-  int socket = -1;
+  int _socket = -1;
   CLIENT *client;
   struct pmap parms;
   bool_t rslt;
@@ -172,7 +172,7 @@ pmap_unset (u_long program, u_long version)
   if (!__get_myaddress (&myaddress))
     return FALSE;
   client = clntudp_bufcreate (&myaddress, PMAPPROG, PMAPVERS,
-			timeout, &socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
+			timeout, &_socket, RPCSMALLMSGSIZE, RPCSMALLMSGSIZE);
   if (client == (CLIENT *) NULL)
     return FALSE;
   parms.pm_prog = program;
@@ -181,7 +181,7 @@ pmap_unset (u_long program, u_long version)
   CLNT_CALL (client, PMAPPROC_UNSET, (xdrproc_t)xdr_pmap, (caddr_t)&parms,
 	     (xdrproc_t)xdr_bool, (caddr_t)&rslt, tottimeout);
   CLNT_DESTROY (client);
-  /* (void)close(socket); CLNT_DESTROY already closed it */
+  /* (void)close(_socket); CLNT_DESTROY already closed it */
   return rslt;
 }
-libc_hidden_def(pmap_unset)
+libc_hidden_def (pmap_unset)