diff options
author | 2018-02-04 04:28:41 +0000 | |
---|---|---|
committer | 2018-02-04 04:28:41 +0000 | |
commit | 59eaf1c4c3f9b3d6e867df2198fd5cee9ef784b7 (patch) | |
tree | e9bdc3fd575facdde3df4f00660aee1ec9970a75 | |
parent | Print strtonum(3)-style error messages on invalid numeric input. (diff) | |
download | wireguard-openbsd-59eaf1c4c3f9b3d6e867df2198fd5cee9ef784b7.tar.xz wireguard-openbsd-59eaf1c4c3f9b3d6e867df2198fd5cee9ef784b7.zip |
fprintf(stderr -> warnx
ok jca@ tb@
-rw-r--r-- | sbin/shutdown/shutdown.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 4b6fe40050f..7f957f6ab2d 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shutdown.c,v 1.46 2017/04/03 20:59:19 fcambus Exp $ */ +/* $OpenBSD: shutdown.c,v 1.47 2018/02/04 04:28:41 cheloha Exp $ */ /* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */ /* @@ -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++); |