summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/clnt_generic.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-15 13:18:42 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-15 13:18:42 +0000
commit51d2e12a88732c8d63311564fd4df090ac3d3608 (patch)
treeb85c9429c196972dcd6f7c69e0e859d87ae514c3 /libc/inet/rpc/clnt_generic.c
parent67fb342b086501f95fdadb3cf69ff9abb7a714e7 (diff)
I've been working on fixing up the rpc crap. now it is only
_mostly_ broken, a big improvement. Still doesn't compile...
Diffstat (limited to 'libc/inet/rpc/clnt_generic.c')
-rw-r--r--libc/inet/rpc/clnt_generic.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/inet/rpc/clnt_generic.c b/libc/inet/rpc/clnt_generic.c
index ba5309492..45199a4d3 100644
--- a/libc/inet/rpc/clnt_generic.c
+++ b/libc/inet/rpc/clnt_generic.c
@@ -43,11 +43,8 @@ static char sccsid[] = "@(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";
* returns client handle. Default options are set, which the user can
* change using the rpc equivalent of ioctl()'s.
*/
-CLIENT *clnt_create(hostname, prog, vers, proto)
-char *hostname;
-unsigned prog;
-unsigned vers;
-char *proto;
+CLIENT *clnt_create __P ((const char *hostname, const u_long prog,
+ const u_long vers, const char *proto))
{
struct hostent *h;
struct protoent *p;
@@ -94,7 +91,7 @@ char *proto;
return (NULL);
}
tv.tv_sec = 25;
- clnt_control(client, CLSET_TIMEOUT, &tv);
+ clnt_control(client, CLSET_TIMEOUT, (char*)&tv);
break;
case IPPROTO_TCP:
client = clnttcp_create(&sin, prog, vers, &sock, 0, 0);
@@ -103,7 +100,7 @@ char *proto;
}
tv.tv_sec = 25;
tv.tv_usec = 0;
- clnt_control(client, CLSET_TIMEOUT, &tv);
+ clnt_control(client, CLSET_TIMEOUT, (char*)&tv);
break;
default:
rpc_createerr.cf_stat = RPC_SYSTEMERROR;