Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/indent Use warnx(3).



details:   https://anonhg.NetBSD.org/src/rev/fb33f896edb3
branches:  trunk
changeset: 343720:fb33f896edb3
user:      ginsbach <ginsbach%NetBSD.org@localhost>
date:      Mon Feb 22 22:01:48 2016 +0000

description:
Use warnx(3).

diffstat:

 usr.bin/indent/indent.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 06343f48c5b9 -r fb33f896edb3 usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c   Mon Feb 22 21:20:29 2016 +0000
+++ b/usr.bin/indent/indent.c   Mon Feb 22 22:01:48 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: indent.c,v 1.20 2016/02/22 19:04:18 ginsbach Exp $     */
+/*     $NetBSD: indent.c,v 1.21 2016/02/22 22:01:48 ginsbach Exp $     */
 
 /*
  * Copyright (c) 1980, 1993
@@ -75,7 +75,7 @@
 #if 0
 static char sccsid[] = "@(#)indent.c   5.17 (Berkeley) 6/7/93";
 #else
-__RCSID("$NetBSD: indent.c,v 1.20 2016/02/22 19:04:18 ginsbach Exp $");
+__RCSID("$NetBSD: indent.c,v 1.21 2016/02/22 22:01:48 ginsbach Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -134,7 +134,7 @@
         \*-----------------------------------------------*/
 
        if (!setlocale(LC_ALL, ""))
-               fprintf(stderr, "indent: can't set locale.\n");
+               warnx("can't set locale.");
 
        hd_type = 0;
        ps.p_stack[0] = stmt;   /* this is the parser's stack */



Home | Main Index | Thread Index | Old Index