Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/disklabel use warnx() rather than warn() in a case wher...
details: https://anonhg.NetBSD.org/src/rev/f7f19c776561
branches: trunk
changeset: 351984:f7f19c776561
user: chs <chs%NetBSD.org@localhost>
date: Thu Mar 09 00:18:23 2017 +0000
description:
use warnx() rather than warn() in a case where errno is not relevant.
diffstat:
sbin/disklabel/main.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1d2938c33158 -r f7f19c776561 sbin/disklabel/main.c
--- a/sbin/disklabel/main.c Thu Mar 09 00:17:32 2017 +0000
+++ b/sbin/disklabel/main.c Thu Mar 09 00:18:23 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.46 2016/01/31 18:57:29 christos Exp $ */
+/* $NetBSD: main.c,v 1.47 2017/03/09 00:18:23 chs Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else
-__RCSID("$NetBSD: main.c,v 1.46 2016/01/31 18:57:29 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.47 2017/03/09 00:18:23 chs Exp $");
#endif
#endif /* not lint */
@@ -387,7 +387,7 @@
if ((!biendian_p || set_p)
&& byteorder != 0
&& byteorder != new_byteorder) {
- warn("changing %s byteorder to %s",
+ warnx("changing %s byteorder to %s",
byteorder == LITTLE_ENDIAN ? "le" : "be",
new_byteorder == LITTLE_ENDIAN ? "le" : "be");
}
Home |
Main Index |
Thread Index |
Old Index