summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-29 07:30:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-29 07:30:02 +0000
commitc89fc1f8b6923f07d5e1d1568d2903f748684b78 (patch)
treeb607a697c9eb77fd784efa083bdeaa834dbce5b1
parentc0554ba6d63022a79862679d814744c07c6df2da (diff)
KNF
-rw-r--r--libexec/rpc.sprayd/sprayd.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/libexec/rpc.sprayd/sprayd.c b/libexec/rpc.sprayd/sprayd.c
index 83d5d545d58..7a9fa14c0aa 100644
--- a/libexec/rpc.sprayd/sprayd.c
+++ b/libexec/rpc.sprayd/sprayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sprayd.c,v 1.5 2002/02/16 21:27:31 millert Exp $*/
+/* $OpenBSD: sprayd.c,v 1.6 2002/06/29 07:30:01 deraadt Exp $*/
/*
* Copyright (c) 1994 Christos Zoulas
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: sprayd.c,v 1.5 2002/02/16 21:27:31 millert Exp $";
+static char rcsid[] = "$OpenBSD: sprayd.c,v 1.6 2002/06/29 07:30:01 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -53,22 +53,20 @@ static int from_inetd = 1;
#define TIMEOUT 120
void
-cleanup()
+cleanup(int signo)
{
(void) pmap_unset(SPRAYPROG, SPRAYVERS); /* XXX signal race */
_exit(0);
}
void
-die()
+die(int signo)
{
_exit(0);
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
SVCXPRT *transp;
int sock = 0;
@@ -120,12 +118,10 @@ main(argc, argv)
static void
-spray_service(rqstp, transp)
- struct svc_req *rqstp;
- SVCXPRT *transp;
+spray_service(struct svc_req *rqstp, SVCXPRT *transp)
{
- static spraycumul scum;
static struct timeval clear, get;
+ static spraycumul scum;
switch (rqstp->rq_proc) {
case SPRAYPROC_CLEAR: