Module Name: src
Committed By: chs
Date: Thu Mar 9 00:18:23 UTC 2017
Modified Files:
src/sbin/disklabel: main.c
Log Message:
use warnx() rather than warn() in a case where errno is not relevant.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sbin/disklabel/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/disklabel/main.c
diff -u src/sbin/disklabel/main.c:1.46 src/sbin/disklabel/main.c:1.47
--- src/sbin/disklabel/main.c:1.46 Sun Jan 31 18:57:29 2016
+++ src/sbin/disklabel/main.c Thu Mar 9 00:18:23 2017
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19
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 @@ setbyteorder(int new_byteorder)
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");
}