summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-09-04 15:41:24 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-09-04 15:41:24 +0000
commit2a416e55db98c94b432f9e192e37362efc78c4a1 (patch)
treedc4f989b0689f8343d07411b50d093b06b482616 /usr.bin
parent6d46545f907bd97df2a4ff724040dff394dd718b (diff)
usage() is __dead and main() needs no prototype
Diffstat (limited to 'usr.bin')
-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;