From c5ea13ea99b2682ebc06f26068296706e76d5741 Mon Sep 17 00:00:00 2001 From: Thorsten Lockert Date: Mon, 25 Mar 1996 21:54:42 +0000 Subject: Pull prototypes into scope Remove graticious casts --- lib/libc/rpc/pmap_rmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/rpc/pmap_rmt.c') diff --git a/lib/libc/rpc/pmap_rmt.c b/lib/libc/rpc/pmap_rmt.c index fe3d6af8ec7..5e8082e2b93 100644 --- a/lib/libc/rpc/pmap_rmt.c +++ b/lib/libc/rpc/pmap_rmt.c @@ -49,6 +49,7 @@ static char *rcsid = "$NetBSD: pmap_rmt.c,v 1.6 1995/06/03 22:37:25 mycroft Exp #include #include #include +#include #include #include #include @@ -172,7 +173,7 @@ getbroadcastnets(addrs, sock, buf) struct ifreq ifreq, *ifr; struct sockaddr_in *sin; char *cp, *cplim; - int n, i = 0; + int i = 0; ifc.ifc_len = UDPMSGSIZE; ifc.ifc_buf = buf; @@ -322,8 +323,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult) msg.acpted_rply.ar_results.where = (caddr_t)&r; msg.acpted_rply.ar_results.proc = xdr_rmtcallres; readfds = mask; - switch (select(sock+1, &readfds, (int *)NULL, - (int *)NULL, &t)) { + switch (select(sock+1, &readfds, NULL, NULL, &t)) { case 0: /* timed out */ stat = RPC_TIMEDOUT; -- cgit v1.2.3