From 0963af50e96d9c8e93041e9faf281c895bb53dbe Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Wed, 27 Nov 2024 15:22:55 +0100 Subject: [PATCH] perror: style nits --- usr.bin/perror/perror.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/perror/perror.c b/usr.bin/perror/perror.c index 6341928e902..4ef77aefdd3 100644 --- a/usr.bin/perror/perror.c +++ b/usr.bin/perror/perror.c @@ -40,7 +40,7 @@ static void usage(void) __dead2; -int +int main(int argc, char **argv) { char *cp; @@ -63,7 +63,7 @@ main(int argc, char **argv) if (errno != 0) err(EXIT_FAILURE, NULL); - if ((errstr = strerror(errnum)) == NULL) + if ((errstr = strerror(errnum)) == NULL) err(EXIT_FAILURE, NULL); printf("%s\n", errstr); @@ -71,7 +71,7 @@ main(int argc, char **argv) exit(EXIT_SUCCESS); } -static void +static void usage(void) { fprintf(stderr, "usage: perror number\n");