summaryrefslogtreecommitdiff
path: root/usr.bin/rup
diff options
context:
space:
mode:
authorplunky <plunky@NetBSD.org>2011-08-30 17:06:20 +0000
committerplunky <plunky@NetBSD.org>2011-08-30 17:06:20 +0000
commit3cd9f110a3b5d823dfa855b36c0a0b3ca97faa0b (patch)
tree36b768fff008b683b52a411eae1f23e5e8fbb47f /usr.bin/rup
parentd978656c4d2c9d76d838899f16b846bdfce60bfb (diff)
Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is a different kind of pointer.
Diffstat (limited to 'usr.bin/rup')
-rw-r--r--usr.bin/rup/rup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c
index 7c0e5999acc..6ca79431f4f 100644
--- a/usr.bin/rup/rup.c
+++ b/usr.bin/rup/rup.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rup.c,v 1.27 2007/12/15 19:44:53 perry Exp $ */
+/* $NetBSD: rup.c,v 1.28 2011/08/30 17:06:21 plunky Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rup.c,v 1.27 2007/12/15 19:44:53 perry Exp $");
+__RCSID("$NetBSD: rup.c,v 1.28 2011/08/30 17:06:21 plunky Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -323,7 +323,7 @@ allhosts(void)
}
clnt_stat = rpc_broadcast(RSTATPROG, RSTATVERS_TIME, RSTATPROC_STATS,
- xdr_void, NULL, xdr_statstime, (caddr_t)(void *)&host_stat,
+ (xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_statstime, (caddr_t)(void *)&host_stat,
(resultproc_t)rstat_reply, "udp");
if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT)
errx(1, "%s", clnt_sperrno(clnt_stat));