ok?

--
Scott Cheloha

Index: sbin/shutdown/shutdown.c
===================================================================
RCS file: /cvs/src/sbin/shutdown/shutdown.c,v
retrieving revision 1.46
diff -u -p -r1.46 shutdown.c
--- sbin/shutdown/shutdown.c    3 Apr 2017 20:59:19 -0000       1.46
+++ sbin/shutdown/shutdown.c    3 Feb 2018 19:31:12 -0000
@@ -151,18 +151,15 @@ main(int argc, char *argv[])
                usage();
 
        if (dofast && nosync) {
-               (void)fprintf(stderr,
-                   "shutdown: incompatible switches -f and -n.\n");
+               warnx("incompatible switches -f and -n.");
                usage();
        }
        if (doreboot && dohalt) {
-               (void)fprintf(stderr,
-                   "shutdown: incompatible switches -h and -r.\n");
+               warnx("incompatible switches -h and -r.");
                usage();
        }
        if (doreboot && dopower) {
-               (void)fprintf(stderr,
-                   "shutdown: incompatible switches -p and -r.\n");
+               warnx("incompatible switches -p and -r.");
                usage();
        }
        getoffset(*argv++);

Reply via email to