git: 0963af50e96d - main - perror: style nits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Nov 2024 14:27:00 UTC
The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=0963af50e96d9c8e93041e9faf281c895bb53dbe commit 0963af50e96d9c8e93041e9faf281c895bb53dbe Author: Mariusz Zaborski <oshogbo@FreeBSD.org> AuthorDate: 2024-11-27 14:22:55 +0000 Commit: Mariusz Zaborski <oshogbo@FreeBSD.org> CommitDate: 2024-11-27 14:26:51 +0000 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 6341928e9024..4ef77aefdd31 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");