diff options
author | peter <peter@FreeBSD.org> | 2003-10-26 06:14:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-10-26 06:14:10 +0000 |
commit | 9a6ba4dbc2dd22e313c2d2555ebb74da5c2b290d (patch) | |
tree | 1d60fc584ef3aa91c84ec2a031a56a288780eda1 /usr.sbin/rpc.statd | |
parent | 2472b3136c8144dbb0eae73e82143695a7dac0b8 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/rpc.statd/Makefile | 1 | ||||
-rw-r--r-- | usr.sbin/rpc.statd/file.c | 3 | ||||
-rw-r--r-- | usr.sbin/rpc.statd/procs.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/rpc.statd/Makefile b/usr.sbin/rpc.statd/Makefile index 0eedee5..6d8053c 100644 --- a/usr.sbin/rpc.statd/Makefile +++ b/usr.sbin/rpc.statd/Makefile @@ -5,6 +5,7 @@ MAN= rpc.statd.8 SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c CFLAGS+= -I. +#WARNS?= 2 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc 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); diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c index 8109c9c..eed7849 100644 --- a/usr.sbin/rpc.statd/procs.c +++ b/usr.sbin/rpc.statd/procs.c @@ -409,8 +409,8 @@ void *sm_notify_1_svc(stat_chge *arg, struct svc_req *req __unused) } else { - if (clnt_call(cli, lp->notifyProc, xdr_sm_status, &tx_arg, xdr_void, - &dummy, timeout) != RPC_SUCCESS) + if (clnt_call(cli, lp->notifyProc, (xdrproc_t)xdr_sm_status, &tx_arg, + (xdrproc_t)xdr_void, &dummy, timeout) != RPC_SUCCESS) { syslog(LOG_ERR, "Failed to call rpc.statd client at host %s", lp->notifyHost); |