diff options
| author | christos <christos@NetBSD.org> | 1997-09-17 20:16:07 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1997-09-17 20:16:07 +0000 |
| commit | fa64ad7ffc637f76d36a3ceff7f967525631d755 (patch) | |
| tree | 2b0fd653b5ca8226ba49893182320d35edacc751 /libexec | |
| parent | 8b0c39d09eb4de0f41fa68e6ace6e73e9cc9b814 (diff) | |
Fix for WARNS=1
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rpc.sprayd/Makefile | 3 | ||||
| -rw-r--r-- | libexec/rpc.sprayd/sprayd.c | 26 |
2 files changed, 20 insertions, 9 deletions
diff --git a/libexec/rpc.sprayd/Makefile b/libexec/rpc.sprayd/Makefile index 21123d2c946..3f7df6d5989 100644 --- a/libexec/rpc.sprayd/Makefile +++ b/libexec/rpc.sprayd/Makefile @@ -1,5 +1,6 @@ -# $NetBSD: Makefile,v 1.4 1996/08/30 20:13:39 thorpej Exp $ +# $NetBSD: Makefile,v 1.5 1997/09/17 20:16:07 christos Exp $ +WARNS?= 1 PROG = rpc.sprayd SRCS = sprayd.c MAN = rpc.sprayd.8 diff --git a/libexec/rpc.sprayd/sprayd.c b/libexec/rpc.sprayd/sprayd.c index d9d3ab9e270..5c905986737 100644 --- a/libexec/rpc.sprayd/sprayd.c +++ b/libexec/rpc.sprayd/sprayd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sprayd.c,v 1.8 1996/08/30 20:13:42 thorpej Exp $ */ +/* $NetBSD: sprayd.c,v 1.9 1997/09/17 20:16:08 christos Exp $ */ /* * Copyright (c) 1994 Christos Zoulas @@ -30,32 +30,42 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> #ifndef lint -static char rcsid[] = "$NetBSD: sprayd.c,v 1.8 1996/08/30 20:13:42 thorpej Exp $"; +__RCSID("$NetBSD: sprayd.c,v 1.9 1997/09/17 20:16:08 christos Exp $"); #endif /* not lint */ #include <stdio.h> #include <signal.h> -#include <rpc/rpc.h> -#include <sys/time.h> +#include <stdlib.h> +#include <unistd.h> #include <syslog.h> +#include <sys/socket.h> +#include <sys/time.h> +#include <rpc/rpc.h> #include <rpcsvc/spray.h> +static void cleanup __P((int)); +static void die __P((int)); static void spray_service __P((struct svc_req *, SVCXPRT *)); +int main __P((int, char *[])); + static int from_inetd = 1; #define TIMEOUT 120 -void -cleanup() +static void +cleanup(n) + int n; { (void) pmap_unset(SPRAYPROG, SPRAYVERS); exit(0); } -void -die() +static void +die(n) + int n; { exit(0); } |
