perror: style nits

This commit is contained in:
Mariusz Zaborski 2024-11-27 15:22:55 +01:00
parent adc02d5e3c
commit 0963af50e9

View file

@ -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");