aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/perror
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2024-11-27 14:22:55 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2024-11-27 14:26:51 +0000
commit0963af50e96d9c8e93041e9faf281c895bb53dbe (patch)
tree8063539fd2e2022f1eb069425ebe1ee880bd77c4 /usr.bin/perror
parentadc02d5e3cfad9c9d7e12f776cad651795d9ad78 (diff)
Diffstat (limited to 'usr.bin/perror')
-rw-r--r--usr.bin/perror/perror.c6
1 files 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");