summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2018-04-16 16:27:08 +0000
committerasomers <asomers@FreeBSD.org>2018-04-16 16:27:08 +0000
commit6b0ed41089ef448073b6855571347ecc35e0ce0f (patch)
tree4d46a181ff4b71f24661339a3d0d425439892027 /libexec
parent9691af6fe25a6f4bd093d410ce773ed8acfca7aa (diff)
downloadFreeBSD-src-6b0ed41089ef448073b6855571347ecc35e0ce0f.zip
FreeBSD-src-6b0ed41089ef448073b6855571347ecc35e0ce0f.tar.gz
MFC r330514:
rpc.sprayd: raise WARNS to 6
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rpc.sprayd/Makefile2
-rw-r--r--libexec/rpc.sprayd/sprayd.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/libexec/rpc.sprayd/Makefile b/libexec/rpc.sprayd/Makefile
index 51ac6bf..8fca39d 100644
--- a/libexec/rpc.sprayd/Makefile
+++ b/libexec/rpc.sprayd/Makefile
@@ -6,6 +6,4 @@ MAN = rpc.sprayd.8
LIBADD= rpcsvc
-WARNS?= 2
-
.include <bsd.prog.mk>
diff --git a/libexec/rpc.sprayd/sprayd.c b/libexec/rpc.sprayd/sprayd.c
index 5c3491c..443030c 100644
--- a/libexec/rpc.sprayd/sprayd.c
+++ b/libexec/rpc.sprayd/sprayd.c
@@ -61,21 +61,21 @@ static int from_inetd = 1;
#define TIMEOUT 120
-void
+static void
cleanup(int sig __unused)
{
(void)rpcb_unset(SPRAYPROG, SPRAYVERS, NULL);
exit(0);
}
-void
+static void
die(int sig __unused)
{
exit(0);
}
int
-main(int argc, char *argv[])
+main(int argc __unused, char *argv[] __unused)
{
SVCXPRT *transp;
int ok;
OpenPOWER on IntegriCloud