diff options
| author | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-13 11:13:33 +0000 |
|---|---|---|
| committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-10-13 11:13:33 +0000 |
| commit | df82e9ba02c7ea6099480b44d09a741c4293ba62 (patch) | |
| tree | 150c279fd834e2c448b213619744ed4ef2d0c0d2 /usr.sbin/rpc.statd/procs.c | |
| parent | 5dbfe9a1380b39d1cdf17ec8d9bcbcdaa5f1cc3a (diff) | |
Notes
Diffstat (limited to 'usr.sbin/rpc.statd/procs.c')
| -rw-r--r-- | usr.sbin/rpc.statd/procs.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c index c43f86b9ad5f..a33abd40b5f9 100644 --- a/usr.sbin/rpc.statd/procs.c +++ b/usr.sbin/rpc.statd/procs.c @@ -31,11 +31,16 @@ * */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <errno.h> +#include <unistd.h> #include <rpc/rpc.h> #include <syslog.h> #include <netdb.h> /* for gethostbyname() */ @@ -99,7 +104,7 @@ struct sm_stat_res *sm_mon_1_svc(mon *arg, struct svc_req *req) { syslog(LOG_ERR, "Invalid hostname to sm_mon: %s", arg->mon_id.mon_name); } - else if (hp = find_host(arg->mon_id.mon_name, TRUE)) + else if ((hp = find_host(arg->mon_id.mon_name, TRUE))) { lp = (MonList *)malloc(sizeof(MonList)); if (!lp) @@ -185,7 +190,7 @@ struct sm_stat *sm_unmon_1_svc(mon_id *arg, struct svc_req *req) arg->my_id.my_vers, arg->my_id.my_proc); } - if (hp = find_host(arg->mon_name, FALSE)) + if ((hp = find_host(arg->mon_name, FALSE))) { if (do_unmon(hp, &arg->my_id)) sync_file(); else @@ -214,7 +219,6 @@ struct sm_stat *sm_unmon_all_1_svc(my_id *arg, struct svc_req *req) { static sm_stat res; HostInfo *hp; - MonList *lp; int i; if (debug) @@ -349,4 +353,3 @@ void *sm_notify_1_svc(stat_chge *arg, struct svc_req *req) exit (0); /* Child quits */ } - |
