summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.statd
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-03-22 19:43:21 +0000
committeralfred <alfred@FreeBSD.org>2002-03-22 19:43:21 +0000
commita36618aaa6b23db1e9e6102931f235c5f273a75f (patch)
tree8803f2fd8231186899acbc88b50fe99ff7429c52 /usr.sbin/rpc.statd
parent255cf1e087f681af027ffb2a79f4d5fcfc1e2ae2 (diff)
downloadFreeBSD-src-a36618aaa6b23db1e9e6102931f235c5f273a75f.zip
FreeBSD-src-a36618aaa6b23db1e9e6102931f235c5f273a75f.tar.gz
rename 'enum res' and 'struct status' to 'enum sm_res' and 'struct sm_status'
to avoid -Wshadow warnings in consumers of its generated header files.
Diffstat (limited to 'usr.sbin/rpc.statd')
-rw-r--r--usr.sbin/rpc.statd/procs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c
index 3f27e582..b508f33 100644
--- a/usr.sbin/rpc.statd/procs.c
+++ b/usr.sbin/rpc.statd/procs.c
@@ -301,7 +301,7 @@ void *sm_notify_1_svc(stat_chge *arg, struct svc_req *req)
struct timeval timeout = { 20, 0 }; /* 20 secs timeout */
CLIENT *cli;
static char dummy;
- status tx_arg; /* arg sent to callback procedure */
+ sm_status tx_arg; /* arg sent to callback procedure */
MonList *lp;
HostInfo *hp;
pid_t pid;
@@ -340,8 +340,8 @@ void *sm_notify_1_svc(stat_chge *arg, struct svc_req *req)
}
else
{
- if (clnt_call(cli, lp->notifyProc, xdr_status, &tx_arg, xdr_void, &dummy,
- timeout) != RPC_SUCCESS)
+ if (clnt_call(cli, lp->notifyProc, xdr_sm_status, &tx_arg, xdr_void,
+ &dummy, timeout) != RPC_SUCCESS)
{
syslog(LOG_ERR, "Failed to call rpc.statd client at host %s",
lp->notifyHost);
OpenPOWER on IntegriCloud