|
@@ -62,7 +62,7 @@ struct pmaplist *
|
|
|
pmap_getmaps (struct sockaddr_in *address)
|
|
|
{
|
|
|
struct pmaplist *head = (struct pmaplist *) NULL;
|
|
|
- int socket = -1;
|
|
|
+ int _socket = -1;
|
|
|
struct timeval minutetimeout;
|
|
|
CLIENT *client;
|
|
|
|
|
@@ -72,7 +72,7 @@ pmap_getmaps (struct sockaddr_in *address)
|
|
|
|
|
|
|
|
|
client = clnttcp_create (address, PMAPPROG,
|
|
|
- PMAPVERS, &socket, 50, 500);
|
|
|
+ PMAPVERS, &_socket, 50, 500);
|
|
|
if (client != (CLIENT *) NULL)
|
|
|
{
|
|
|
if (CLNT_CALL (client, PMAPPROC_DUMP, (xdrproc_t)xdr_void, NULL,
|
|
@@ -83,7 +83,7 @@ pmap_getmaps (struct sockaddr_in *address)
|
|
|
}
|
|
|
CLNT_DESTROY (client);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
address->sin_port = 0;
|
|
|
return head;
|
|
|
}
|