From 59eaf1c4c3f9b3d6e867df2198fd5cee9ef784b7 Mon Sep 17 00:00:00 2001 From: cheloha Date: Sun, 4 Feb 2018 04:28:41 +0000 Subject: [PATCH] fprintf(stderr -> warnx ok jca@ tb@ --- sbin/shutdown/shutdown.c | 11 ++++------- 1 file 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++); -- 2.20.1