summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-06-29 07:30:01 +0000
committerderaadt <deraadt@openbsd.org>2002-06-29 07:30:01 +0000
commit6a3e872968a677a1fa271bd81572bffe1cc90a62 (patch)
treefb463fed9503750b94681f2b846c7750a251269c
parentkqfilter for the log. niels said i can commit it if it works (diff)
downloadwireguard-openbsd-6a3e872968a677a1fa271bd81572bffe1cc90a62.tar.xz
wireguard-openbsd-6a3e872968a677a1fa271bd81572bffe1cc90a62.zip
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: