diff options
author | 2001-07-07 00:31:55 +0000 | |
---|---|---|
committer | 2001-07-07 00:31:55 +0000 | |
commit | 8b783019c9f606ce1a297f9d596f9c999ee2b5b8 (patch) | |
tree | 020ea74350eba714ab9174ab2187b4d08a016f48 | |
parent | another size_t printf format missmatch (diff) | |
download | wireguard-openbsd-8b783019c9f606ce1a297f9d596f9c999ee2b5b8.tar.xz wireguard-openbsd-8b783019c9f606ce1a297f9d596f9c999ee2b5b8.zip |
silence a warning
-rw-r--r-- | usr.bin/rpcinfo/rpcinfo.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c index 58d3e6cdfe1..dfe3536314f 100644 --- a/usr.bin/rpcinfo/rpcinfo.c +++ b/usr.bin/rpcinfo/rpcinfo.c @@ -1,9 +1,9 @@ -/* $OpenBSD: rpcinfo.c,v 1.5 2000/07/31 16:55:37 deraadt Exp $ */ +/* $OpenBSD: rpcinfo.c,v 1.6 2001/07/07 00:31:55 millert Exp $ */ #ifndef lint /*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/ /*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/ -static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.5 2000/07/31 16:55:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rpcinfo.c,v 1.6 2001/07/07 00:31:55 millert Exp $"; #endif /* @@ -64,7 +64,7 @@ void udpping(u_short portflag, int argc, char **argv); void tcpping(u_short portflag, int argc, char **argv); int pstatus(CLIENT *client, u_long prognum, u_long vers); void pmapdump(int argc, char **argv); -bool_t reply_proc(void *res, struct sockaddr_in *who); +bool_t reply_proc(caddr_t res, struct sockaddr_in *who); void brdcst(int argc, char **argv); void deletereg(int argc, char **argv); void setreg(int argc, char **argv); @@ -563,7 +563,7 @@ pmapdump(argc, argv) /*ARGSUSED*/ bool_t reply_proc(res, who) - void *res; /* Nothing comes back */ + caddr_t res; /* Nothing comes back */ struct sockaddr_in *who; /* Who sent us the reply */ { register struct hostent *hp; @@ -591,8 +591,7 @@ brdcst(argc, argv) usage("version number out of range"); rpc_stat = clnt_broadcast(prognum, vers_num, NULLPROC, xdr_void, - (char *)NULL, xdr_void, (char *)NULL, - reply_proc); + (char *)NULL, xdr_void, (char *)NULL, reply_proc); if ((rpc_stat != RPC_SUCCESS) && (rpc_stat != RPC_TIMEDOUT)) { fprintf(stderr, "rpcinfo: broadcast failed: %s\n", clnt_sperrno(rpc_stat)); |