From 9d1364448be96ea5fb5e7008b24bdcbcf5e21d0e Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 28 May 2009 21:37:40 +0000 Subject: [PATCH] Use prototype for usage(). This makes perror(1) WARNS=6 clean. Approved by: gnn --- usr.bin/perror/perror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/perror/perror.c b/usr.bin/perror/perror.c index 19b79ce830cb..6d852a7a3717 100644 --- a/usr.bin/perror/perror.c +++ b/usr.bin/perror/perror.c @@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$"); #include #include -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);