summaryrefslogtreecommitdiffstats
path: root/usr.bin/nice/nice.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2016-09-04 15:41:23 +0000
committertb <tb@openbsd.org>2016-09-04 15:41:23 +0000
commit69be9fc122b649b132647b40c2dd9bfd6e4f58b8 (patch)
tree2dd2051e4d5df22fa51ef15809d34d2fa9b74dda /usr.bin/nice/nice.c
parentregen (diff)
downloadwireguard-openbsd-69be9fc122b649b132647b40c2dd9bfd6e4f58b8.tar.xz
wireguard-openbsd-69be9fc122b649b132647b40c2dd9bfd6e4f58b8.zip
usage() is __dead and main() needs no prototype
Diffstat (limited to 'usr.bin/nice/nice.c')
-rw-r--r--usr.bin/nice/nice.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c
index d48e067e181..7b2c8b0f578 100644
--- a/usr.bin/nice/nice.c
+++ b/usr.bin/nice/nice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nice.c,v 1.15 2015/10/19 18:53:35 deraadt Exp $ */
+/* $OpenBSD: nice.c,v 1.16 2016/09/04 15:41:23 tb Exp $ */
/* $NetBSD: nice.c,v 1.9 1995/08/31 23:30:58 jtc Exp $ */
/*
@@ -41,8 +41,7 @@
#define DEFNICE 10
-int main(int, char **);
-static void usage(void);
+static void __dead usage(void);
int
main(int argc, char *argv[])
@@ -98,7 +97,7 @@ main(int argc, char *argv[])
err((errno == ENOENT) ? 127 : 126, "%s", argv[0]);
}
-static void
+static void __dead
usage(void)
{
extern char *__progname;