diff --git a/src/npc.c b/src/npc.c index ca16171..5b6c5c9 100644 --- a/src/npc.c +++ b/src/npc.c @@ -22,11 +22,6 @@ #include /* EX_IOERR, EX_OK, EX_OSERR, EX_USAGE */ #include /* pledge(2), getopt(3) */ -#ifdef __OpenBSD__ -# include /* errno */ -# include /* strerror(3) */ -#endif - char *program_name = "npc"; static int @@ -48,7 +43,7 @@ int main(int argc, char *argv[]) { program_name = argv[0] == NULL ? program_name : argv[0]; if (pledge("stdio", NULL) == -1) { - (void)fprintf(stderr, "%s: %s\n", program_name, strerror(errno)); + perror(program_name); return EX_OSERR; } #endif