summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-09-17 20:19:43 +0000
committerchristos <christos@NetBSD.org>1997-09-17 20:19:43 +0000
commit73f3225d4beaf3e954eaf9dd7b4a16b0f7b0db4d (patch)
tree3a10b5aeb3a88b8d17ffaf3b1b0e094c45efbc05 /libexec
parentfa64ad7ffc637f76d36a3ceff7f967525631d755 (diff)
fix WARNS=1
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.rwalld/Makefile3
-rw-r--r--libexec/rpc.rwalld/rwalld.c21
2 files changed, 16 insertions, 8 deletions
diff --git a/libexec/rpc.rwalld/Makefile b/libexec/rpc.rwalld/Makefile
index ee357f7f653..42a655e33cb 100644
--- a/libexec/rpc.rwalld/Makefile
+++ b/libexec/rpc.rwalld/Makefile
@@ -1,5 +1,6 @@
-# $NetBSD: Makefile,v 1.8 1996/08/30 20:22:12 thorpej Exp $
+# $NetBSD: Makefile,v 1.9 1997/09/17 20:19:43 christos Exp $
+WARNS ?= 1
PROG = rpc.rwalld
SRCS = rwalld.c
MAN = rpc.rwalld.8
diff --git a/libexec/rpc.rwalld/rwalld.c b/libexec/rpc.rwalld/rwalld.c
index 2d27479f150..bb03f609b11 100644
--- a/libexec/rpc.rwalld/rwalld.c
+++ b/libexec/rpc.rwalld/rwalld.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rwalld.c,v 1.10 1996/08/30 20:22:15 thorpej Exp $ */
+/* $NetBSD: rwalld.c,v 1.11 1997/09/17 20:19:45 christos Exp $ */
/*
* Copyright (c) 1993 Christopher G. Demetriou
@@ -29,11 +29,13 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-static char rcsid[] = "$NetBSD: rwalld.c,v 1.10 1996/08/30 20:22:15 thorpej Exp $";
+__RCSID("$NetBSD: rwalld.c,v 1.11 1997/09/17 20:19:45 christos Exp $");
#endif /* not lint */
#include <unistd.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <pwd.h>
#include <stdio.h>
@@ -52,17 +54,22 @@ static char rcsid[] = "$NetBSD: rwalld.c,v 1.10 1996/08/30 20:22:15 thorpej Exp
#define WALL_CMD "/usr/bin/wall -n"
#endif
-void wallprog_1();
+static int from_inetd = 1;
-int from_inetd = 1;
+static void cleanup __P((int));
+static void wallprog_1 __P((struct svc_req *, SVCXPRT *));
-void
-cleanup()
+int main __P((int, char *[]));
+
+static void
+cleanup(n)
+ int n;
{
(void) pmap_unset(WALLPROG, WALLVERS);
exit(0);
}
+int
main(argc, argv)
int argc;
char *argv[];
@@ -135,7 +142,7 @@ wallproc_wall_1_svc(s, rqstp )
return (*s);
}
-void
+static void
wallprog_1(rqstp, transp)
struct svc_req *rqstp;
SVCXPRT *transp;