summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.statd/file.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 06:14:10 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 06:14:10 +0000
commit9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d (patch)
tree1d60fc584ef3aa91c84ec2a031a56a288780eda1 /usr.sbin/rpc.statd/file.c
parent2472b3136c8144dbb0eae73e82143695a7dac0b8 (diff)
downloadFreeBSD-src-9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d.zip
FreeBSD-src-9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d.tar.gz
Deal with xdrproc_t casts. Make these compile cleanly with WARNS=2
(but I haven't turned it on)
Diffstat (limited to 'usr.sbin/rpc.statd/file.c')
-rw-r--r--usr.sbin/rpc.statd/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpc.statd/file.c b/usr.sbin/rpc.statd/file.c
index 4c17e5d..991af88 100644
--- a/usr.sbin/rpc.statd/file.c
+++ b/usr.sbin/rpc.statd/file.c
@@ -239,7 +239,8 @@ static int notify_one_host(char *hostname)
return (FALSE);
}
- if (clnt_call(cli, SM_NOTIFY, xdr_stat_chge, &arg, xdr_void, &dummy, timeout)
+ if (clnt_call(cli, SM_NOTIFY, (xdrproc_t)xdr_stat_chge, &arg,
+ (xdrproc_t)xdr_void, &dummy, timeout)
!= RPC_SUCCESS)
{
syslog(LOG_ERR, "Failed to contact rpc.statd at host %s", hostname);
OpenPOWER on IntegriCloud