From 51d2e12a88732c8d63311564fd4df090ac3d3608 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 15 Jan 2001 13:18:42 +0000 Subject: I've been working on fixing up the rpc crap. now it is only _mostly_ broken, a big improvement. Still doesn't compile... --- libc/inet/rpc/clnt_generic.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libc/inet/rpc/clnt_generic.c') 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; -- cgit v1.2.3