summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-05-28 21:37:40 +0000
committerdelphij <delphij@FreeBSD.org>2009-05-28 21:37:40 +0000
commit9d1364448be96ea5fb5e7008b24bdcbcf5e21d0e (patch)
treee890cc643cf20537cb66afcc4c8ff4e810b26703 /usr.bin
parent9c4052a0284346d8f1b73ca1ea99d7d6c3c2c3e6 (diff)
downloadFreeBSD-src-9d1364448be96ea5fb5e7008b24bdcbcf5e21d0e.zip
FreeBSD-src-9d1364448be96ea5fb5e7008b24bdcbcf5e21d0e.tar.gz
Use prototype for usage(). This makes perror(1) WARNS=6 clean.
Approved by: gnn
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/perror/perror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/perror/perror.c b/usr.bin/perror/perror.c
index 19b79ce..6d852a7 100644
--- a/usr.bin/perror/perror.c
+++ b/usr.bin/perror/perror.c
@@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <sys/errno.h>
-static void usage();
+static void usage(void);
int
main(int argc, char **argv)
@@ -62,7 +62,7 @@ main(int argc, char **argv)
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: perror number\n");
exit(1);
OpenPOWER on IntegriCloud