From 896406c91af05d145e6b15577d78cf7419af02c5 Mon Sep 17 00:00:00 2001 From: Xin LI 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);