diff --git a/usr.bin/whereis/whereis.c b/usr.bin/whereis/whereis.c index 84b0e41eb903..c212e280b59e 100644 --- a/usr.bin/whereis/whereis.c +++ b/usr.bin/whereis/whereis.c @@ -88,8 +88,9 @@ void usage(void); void usage(void) { - errx(EX_USAGE, - "usage: whereis [-abmqsux] [-BMS dir... -f] name ..."); + (void)fprintf(stderr, + "usage: whereis [-abmqsux] [-BMS dir ... -f] program ...\n"); + exit(EX_USAGE); } /*