summaryrefslogtreecommitdiff
path: root/libc/inet/rpc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-31 17:34:49 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-31 17:34:49 +0000
commitf43cd38254b0f915fcade2f61218430ebb5e3db3 (patch)
tree3dbd29b68021b8d5277e7aa8b3894b4b1618fcc0 /libc/inet/rpc
parentacbe47d22b76913e1be97ac0ef4ad0f332819813 (diff)
Cleanup some stupid warnings
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r--libc/inet/rpc/clnt_simple.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libc/inet/rpc/clnt_simple.c b/libc/inet/rpc/clnt_simple.c
index 4b2a6e4d6..c0369e17c 100644
--- a/libc/inet/rpc/clnt_simple.c
+++ b/libc/inet/rpc/clnt_simple.c
@@ -74,7 +74,9 @@ int callrpc (const char *host, const u_long prognum,
crp->socket = RPC_ANYSOCK;
}
if (crp->valid && crp->oldprognum == prognum
- && crp->oldversnum == versnum && strcmp(crp->oldhost, host) == 0) {
+ && crp->oldversnum == versnum &&
+ strcmp(crp->oldhost, host) == 0)
+ {
/* reuse old client */
} else {
crp->valid = 0;
@@ -91,9 +93,9 @@ int callrpc (const char *host, const u_long prognum,
bcopy(hp->h_addr, (char *) &server_addr.sin_addr, hp->h_length);
server_addr.sin_family = AF_INET;
server_addr.sin_port = 0;
- if ((crp->client = clntudp_create(&server_addr, (u_long) prognum,
- (u_long) versnum, timeout,
- &crp->socket)) == NULL)
+ if ((crp->client = clntudp_create(&server_addr,
+ (u_long) prognum, (u_long) versnum,
+ timeout, &crp->socket)) == NULL)
return ((int) rpc_createerr.cf_stat);
crp->valid = 1;
crp->oldprognum = prognum;
@@ -102,8 +104,8 @@ int callrpc (const char *host, const u_long prognum,
}
tottimeout.tv_sec = 25;
tottimeout.tv_usec = 0;
- clnt_stat = clnt_call(crp->client, procnum, inproc, in,
- outproc, out, tottimeout);
+ clnt_stat = clnt_call(crp->client, procnum, inproc, (char*)in,
+ outproc, out, tottimeout);
/*
* if call failed, empty cache
*/