diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 21:54:42 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-03-25 21:54:42 +0000 |
commit | c5ea13ea99b2682ebc06f26068296706e76d5741 (patch) | |
tree | 81d06d5d9da689303bb646ce21072009922a002e /lib/libc/rpc/pmap_rmt.c | |
parent | 727ad8ec981f8b214c4d2b2d4d44e603e3372e66 (diff) |
Pull prototypes into scope
Remove graticious casts
Diffstat (limited to 'lib/libc/rpc/pmap_rmt.c')
-rw-r--r-- | lib/libc/rpc/pmap_rmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <rpc/pmap_rmt.h> #include <sys/socket.h> #include <stdio.h> +#include <unistd.h> #include <errno.h> #include <string.h> #include <net/if.h> @@ -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; |