summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.statd/statd.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-07-11 17:55:14 +0000
committeralfred <alfred@FreeBSD.org>2002-07-11 17:55:14 +0000
commit8a8f54cf28fbe1d04aa539e5a46b4cb9d71d6e33 (patch)
tree8b7b167020a1d9ca9fecf54e96a828481485e247 /usr.sbin/rpc.statd/statd.c
parent0b74a2da00ab0a50d30ae736a1eb9cb5c5c5eb11 (diff)
downloadFreeBSD-src-8a8f54cf28fbe1d04aa539e5a46b4cb9d71d6e33.zip
FreeBSD-src-8a8f54cf28fbe1d04aa539e5a46b4cb9d71d6e33.tar.gz
make mostly WARNS=4 clean.
constify, mark unsued args, fixup prototypes.
Diffstat (limited to 'usr.sbin/rpc.statd/statd.c')
-rw-r--r--usr.sbin/rpc.statd/statd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpc.statd/statd.c b/usr.sbin/rpc.statd/statd.c
index 08ffbd0..b49a428 100644
--- a/usr.sbin/rpc.statd/statd.c
+++ b/usr.sbin/rpc.statd/statd.c
@@ -55,8 +55,8 @@ static const char rcsid[] =
int debug = 0; /* Controls syslog() calls for debug messages */
extern void sm_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
-static void handle_sigchld();
-static void usage __P((void));
+static void handle_sigchld(int sig);
+static void usage(void);
int
main(int argc, char **argv)
@@ -126,7 +126,7 @@ usage()
children to exit when they have done their work.
*/
-static void handle_sigchld(int sig, int code, struct sigcontext *scp)
+static void handle_sigchld(int sig __unused)
{
int pid, status;
pid = wait4(-1, &status, WNOHANG, (struct rusage*)0);
OpenPOWER on IntegriCloud