Use prototype for usage(). This makes perror(1) WARNS=6 clean.

Approved by:	gnn
This commit is contained in:
Xin LI 2009-05-28 21:37:40 +00:00
parent 90db92dccd
commit 896406c91a

View File

@ -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);