aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2026-02-02 21:20:16 +0000
committerBrooks Davis <brooks@FreeBSD.org>2026-02-02 21:20:16 +0000
commit18d47c1856f4ec3f7a2f9a726bba2ebe64d63dd7 (patch)
tree3e29d93001e3dd59efc7022f80fd0e6b4767ff1f /contrib
parente236502a997da6bc94d018d5c5f79bfe17f0f1e7 (diff)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/netbsd-tests/lib/libc/rpc/t_rpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c b/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
index 3000f6aec98b..2737151826bf 100644
--- a/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
+++ b/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
@@ -39,7 +39,8 @@ __RCSID("$NetBSD: t_rpc.c,v 1.10 2016/08/27 14:36:22 christos Exp $");
#define RPCBPROC_NULL 0
static int
-reply(caddr_t replyp, struct netbuf * raddrp, struct netconfig * nconf)
+reply(caddr_t replyp, const struct netbuf * raddrp,
+ const struct netconfig * nconf)
{
char host[NI_MAXHOST];
struct sockaddr *sock = raddrp->buf;
@@ -244,7 +245,7 @@ allhosts(const char *transp)
clnt_stat = rpc_broadcast(RPCBPROG, RPCBVERS, RPCBPROC_NULL,
(xdrproc_t)xdr_void, NULL, (xdrproc_t)xdr_void,
- NULL, (resultproc_t)reply, transp);
+ NULL, reply, transp);
if (clnt_stat != RPC_SUCCESS && clnt_stat != RPC_TIMEDOUT)
ERRX(EXIT_FAILURE, "%s", clnt_sperrno(clnt_stat));
}