From e55942e33c36f1a6f8c857d8de83702c5a590664 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 13 Sep 2006 05:01:25 +0000 Subject: [PATCH] compile under WARNS=6 --- usr.sbin/rpc.statd/procs.c | 7 +++---- usr.sbin/rpc.statd/statd.c | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c index 5a56441338a1..65932fcedabd 100644 --- a/usr.sbin/rpc.statd/procs.c +++ b/usr.sbin/rpc.statd/procs.c @@ -31,10 +31,8 @@ * */ -#ifndef lint -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ +#include +__FBSDID("$FreeBSD$"); #include #include @@ -329,6 +327,7 @@ void *sm_simu_crash_1_svc(void *v __unused, struct svc_req *req __unused) HostInfo *hp; int i; + work_to_do = FALSE; if (debug) syslog(LOG_DEBUG, "simu_crash called!!"); /* Simulate crash by setting notify-required flag on all monitored */ diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c index 507a027e6266..b8212ceecf6e 100644 --- a/usr.sbin/rpc.statd/statd.c +++ b/usr.sbin/rpc.statd/statd.c @@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$"); int debug = 0; /* Controls syslog() calls for debug messages */ -extern void sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp); static void handle_sigchld(int sig); static void usage(void);