From 356b686774968d312476b66d0c1fb1f21c46305a Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 12 Feb 2001 00:59:18 +0000 Subject: Clean up lots of warnings. --- libc/inet/rpc/pmap_getport.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/inet/rpc/pmap_getport.c') 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 #include #include +#include //#include 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) { -- cgit v1.2.3