use warnx() rather than warn() in a case where errno is not relevant.

This commit is contained in:
chs 2017-03-09 00:18:23 +00:00
parent f517f4124f
commit 037063a2ac
1 changed files with 3 additions and 3 deletions

View File

@ -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, 1993\
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");
}