Use prototype for usage(). This makes perror(1) WARNS=6 clean.
Approved by: gnn
This commit is contained in:
parent
90db92dccd
commit
896406c91a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user