|
@@ -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);
|
|
|
-
|
|
|
+
|
|
|
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);
|
|
|
-
|
|
|
+
|
|
|
return rslt;
|
|
|
}
|
|
|
-libc_hidden_def(pmap_unset)
|
|
|
+libc_hidden_def (pmap_unset)
|