summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/clnt_tcp.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-25 21:54:35 +0000
committertholo <tholo@openbsd.org>1996-03-25 21:54:35 +0000
commit48dcfcdaab65b07f702d337324f16d9469ae9bcd (patch)
tree684cd9bccfa9ce74fa67d2228ceb079d923750ae /lib/libc/rpc/clnt_tcp.c
parentPrototype internal functions (diff)
downloadwireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.tar.xz
wireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.zip
Pull prototypes into scope
Remove graticious casts
Diffstat (limited to 'lib/libc/rpc/clnt_tcp.c')
-rw-r--r--lib/libc/rpc/clnt_tcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_tcp.c b/lib/libc/rpc/clnt_tcp.c
index 04a2ef86798..ce6dd3bae18 100644
--- a/lib/libc/rpc/clnt_tcp.c
+++ b/lib/libc/rpc/clnt_tcp.c
@@ -56,6 +56,7 @@ static char *rcsid = "$NetBSD: clnt_tcp.c,v 1.4 1995/02/25 03:01:41 cgd Exp $";
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <rpc/rpc.h>
#include <sys/socket.h>
#include <netdb.h>
@@ -253,7 +254,7 @@ call_again:
ct->ct_error.re_status = RPC_SUCCESS;
x_id = ntohl(--(*msg_x_id));
if ((! XDR_PUTBYTES(xdrs, ct->ct_mcall, ct->ct_mpos)) ||
- (! XDR_PUTLONG(xdrs, &proc)) ||
+ (! XDR_PUTLONG(xdrs, (long *)&proc)) ||
(! AUTH_MARSHALL(h->cl_auth, xdrs)) ||
(! (*xdr_args)(xdrs, args_ptr))) {
if (ct->ct_error.re_status == RPC_SUCCESS)
@@ -409,7 +410,7 @@ readtcp(ct, buf, len)
FD_SET(ct->ct_sock, &mask);
while (TRUE) {
readfds = mask;
- switch (select(ct->ct_sock+1, &readfds, (int*)NULL, (int*)NULL,
+ switch (select(ct->ct_sock+1, &readfds, NULL, NULL,
&(ct->ct_wait))) {
case 0:
ct->ct_error.re_status = RPC_TIMEDOUT;