diff options
author | Alan Somers <asomers@FreeBSD.org> | 2018-03-05 16:11:07 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2018-03-05 16:11:07 +0000 |
commit | ea8727d50d22bf911fa97b8cd34f6626d48f7520 (patch) | |
tree | b488236e9504b68b1479e4511d5f7152530ca4e7 /libexec | |
parent | 99e159dcf62e9ac21249cd514d8b1c92ead07cfa (diff) | |
download | src-ea8727d50d22bf911fa97b8cd34f6626d48f7520.tar.gz src-ea8727d50d22bf911fa97b8cd34f6626d48f7520.zip |
rpc.sprayd: raise WARNS to 6
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=330514
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rpc.sprayd/Makefile | 2 | ||||
-rw-r--r-- | libexec/rpc.sprayd/sprayd.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/libexec/rpc.sprayd/Makefile b/libexec/rpc.sprayd/Makefile index 51ac6bf8d090..8fca39d86360 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 0456be67bd78..5d015481a9e2 100644 --- a/libexec/rpc.sprayd/sprayd.c +++ b/libexec/rpc.sprayd/sprayd.c @@ -58,21 +58,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; |