summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd/lockd_lock.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 06:10:44 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 06:10:44 +0000
commitedafc1a965b6d0a67c9cb9b30c70c97a9ad09e3a (patch)
tree980fb104b174f8683337c26a17d32678284fc762 /usr.sbin/rpc.lockd/lockd_lock.c
parent39da8f45bd8bdbad93a8a3e59cb63a538b4eaa35 (diff)
downloadFreeBSD-src-edafc1a965b6d0a67c9cb9b30c70c97a9ad09e3a.zip
FreeBSD-src-edafc1a965b6d0a67c9cb9b30c70c97a9ad09e3a.tar.gz
Make this compile cleanly. It passes WARNS=2, but I haven't checked
it is so on more platforms.
Diffstat (limited to 'usr.sbin/rpc.lockd/lockd_lock.c')
-rw-r--r--usr.sbin/rpc.lockd/lockd_lock.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/usr.sbin/rpc.lockd/lockd_lock.c b/usr.sbin/rpc.lockd/lockd_lock.c
index 9c876f4..e82877f 100644
--- a/usr.sbin/rpc.lockd/lockd_lock.c
+++ b/usr.sbin/rpc.lockd/lockd_lock.c
@@ -160,7 +160,7 @@ void send_granted(struct file_lock *fl, int opcode);
void siglock(void);
void sigunlock(void);
void monitor_lock_host(const char *hostname);
-void unmonitor_lock_host(const char *hostname);
+void unmonitor_lock_host(char *hostname);
void copy_nlm4_lock_to_nlm4_holder(const struct nlm4_lock *src,
const bool_t exclusive, struct nlm4_holder *dest);
@@ -2027,8 +2027,9 @@ monitor_lock_host(const char *hostname)
smon.mon_id.my_id.my_vers = NLM_SM;
smon.mon_id.my_id.my_proc = NLM_SM_NOTIFY;
- rpcret = callrpc("localhost", SM_PROG, SM_VERS, SM_MON, xdr_mon,
- &smon, xdr_sm_stat_res, &sres);
+ rpcret = callrpc("localhost", SM_PROG, SM_VERS, SM_MON,
+ (xdrproc_t)xdr_mon, &smon,
+ (xdrproc_t)xdr_sm_stat_res, &sres);
if (rpcret == 0) {
if (sres.res_stat == stat_fail) {
@@ -2055,7 +2056,7 @@ monitor_lock_host(const char *hostname)
* unmonitor_lock_host: clear monitor ref counts and inform statd when gone
*/
void
-unmonitor_lock_host(const char *hostname)
+unmonitor_lock_host(char *hostname)
{
struct host *ihp;
struct mon_id smon_id;
@@ -2097,8 +2098,9 @@ unmonitor_lock_host(const char *hostname)
smon_id.my_id.my_vers = NLM_SM;
smon_id.my_id.my_proc = NLM_SM_NOTIFY;
- rpcret = callrpc("localhost", SM_PROG, SM_VERS, SM_UNMON, xdr_mon,
- &smon_id, xdr_sm_stat_res, &smstat);
+ rpcret = callrpc("localhost", SM_PROG, SM_VERS, SM_UNMON,
+ (xdrproc_t)xdr_mon, &smon_id,
+ (xdrproc_t)xdr_sm_stat_res, &smstat);
if (rpcret != 0) {
debuglog("Rpc call to unmonitor statd failed with "
@@ -2183,11 +2185,12 @@ send_granted(fl, opcode)
(fl->flags & LOCK_ASYNC) ? " (async)":"");
if (fl->flags & LOCK_ASYNC) {
success = clnt_call(cli, NLM4_GRANTED_MSG,
- xdr_nlm4_testargs, &res, xdr_void, &dummy, timeo);
+ (xdrproc_t)xdr_nlm4_testargs, &res,
+ (xdrproc_t)xdr_void, &dummy, timeo);
} else {
success = clnt_call(cli, NLM4_GRANTED,
- xdr_nlm4_testargs, &res, xdr_nlm4_res,
- &retval4, timeo);
+ (xdrproc_t)xdr_nlm4_testargs, &res,
+ (xdrproc_t)xdr_nlm4_res, &retval4, timeo);
}
} else {
static nlm_testargs res;
@@ -2205,11 +2208,12 @@ send_granted(fl, opcode)
(fl->flags & LOCK_ASYNC) ? " (async)":"");
if (fl->flags & LOCK_ASYNC) {
success = clnt_call(cli, NLM_GRANTED_MSG,
- xdr_nlm_testargs, &res, xdr_void, &dummy, timeo);
+ (xdrproc_t)xdr_nlm_testargs, &res,
+ (xdrproc_t)xdr_void, &dummy, timeo);
} else {
success = clnt_call(cli, NLM_GRANTED,
- xdr_nlm_testargs, &res, xdr_nlm_res,
- &retval, timeo);
+ (xdrproc_t)xdr_nlm_testargs, &res,
+ (xdrproc_t)xdr_nlm_res, &retval, timeo);
}
}
if (debug_level > 2)
OpenPOWER on IntegriCloud