diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
commit | 356b686774968d312476b66d0c1fb1f21c46305a (patch) | |
tree | 2f5aaf6e6add6d81e463d41609bd2f3cd5107d0a /libc/inet/rpc/pmap_getport.c | |
parent | e57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (diff) |
Clean up lots of warnings.
Diffstat (limited to 'libc/inet/rpc/pmap_getport.c')
-rw-r--r-- | libc/inet/rpc/pmap_getport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/inet/rpc/pmap_getport.c b/libc/inet/rpc/pmap_getport.c index eee4f5d27..519d7d933 100644 --- a/libc/inet/rpc/pmap_getport.c +++ b/libc/inet/rpc/pmap_getport.c @@ -41,6 +41,7 @@ #include <rpc/pmap_prot.h> #include <rpc/pmap_clnt.h> #include <sys/socket.h> +#include <unistd.h> //#include <net/if.h> static struct timeval timeout = { 5, 0 }; @@ -71,8 +72,10 @@ u_int protocol; parms.pm_vers = version; parms.pm_prot = protocol; parms.pm_port = 0; /* not needed or used */ - if (CLNT_CALL(client, PMAPPROC_GETPORT, xdr_pmap, &parms, - xdr_u_short, &port, tottimeout) != RPC_SUCCESS) { + if (CLNT_CALL(client, PMAPPROC_GETPORT, + (xdrproc_t) xdr_pmap, (caddr_t) &parms, + (xdrproc_t) xdr_u_short, (caddr_t) &port, + tottimeout) != RPC_SUCCESS) { rpc_createerr.cf_stat = RPC_PMAPFAILURE; clnt_geterr(client, &rpc_createerr.cf_error); } else if (port == 0) { |