summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/pmap_getmaps.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-02-12 00:59:18 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-02-12 00:59:18 +0000
commit356b686774968d312476b66d0c1fb1f21c46305a (patch)
tree2f5aaf6e6add6d81e463d41609bd2f3cd5107d0a /libc/inet/rpc/pmap_getmaps.c
parente57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (diff)
Clean up lots of warnings.
Diffstat (limited to 'libc/inet/rpc/pmap_getmaps.c')
-rw-r--r--libc/inet/rpc/pmap_getmaps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/inet/rpc/pmap_getmaps.c b/libc/inet/rpc/pmap_getmaps.c
index e1685b595..58fc0c25b 100644
--- a/libc/inet/rpc/pmap_getmaps.c
+++ b/libc/inet/rpc/pmap_getmaps.c
@@ -47,6 +47,7 @@
#include <errno.h>
//#include <net/if.h>
#include <sys/ioctl.h>
+#include <unistd.h>
#define NAMELEN 255
#define MAX_BROADCAST_SIZE 1400
@@ -69,8 +70,9 @@ struct sockaddr_in *address;
address->sin_port = htons(PMAPPORT);
client = clnttcp_create(address, PMAPPROG, PMAPVERS, &socket, 50, 500);
if (client != (CLIENT *) NULL) {
- if (CLNT_CALL(client, PMAPPROC_DUMP, xdr_void, NULL, xdr_pmaplist,
- &head, minutetimeout) != RPC_SUCCESS) {
+ if (CLNT_CALL(client, PMAPPROC_DUMP, (xdrproc_t) xdr_void, NULL,
+ (xdrproc_t) xdr_pmaplist, (caddr_t) &head,
+ minutetimeout) != RPC_SUCCESS) {
clnt_perror(client, "pmap_getmaps rpc problem");
}
CLNT_DESTROY(client);