diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 451b15b1a42e..e646f5d60dec 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -53,7 +53,6 @@ static const char rcsid[] = #include #include #include -#include #include #ifdef SHELL @@ -123,7 +122,7 @@ main(int argc, char *argv[]) if (argc < 1) { usage(); - /* NOTREACHED */ + return (1); } #ifdef SHELL @@ -563,5 +562,4 @@ static void usage(void) { (void)fprintf(stderr, "usage: printf format [arguments ...]\n"); - exit(EX_USAGE); }