Module Name: src Committed By: ginsbach Date: Mon Feb 22 22:01:48 UTC 2016
Modified Files: src/usr.bin/indent: indent.c Log Message: Use warnx(3). To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.bin/indent/indent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/indent/indent.c diff -u src/usr.bin/indent/indent.c:1.20 src/usr.bin/indent/indent.c:1.21 --- src/usr.bin/indent/indent.c:1.20 Mon Feb 22 19:04:18 2016 +++ src/usr.bin/indent/indent.c Mon Feb 22 22:01:48 2016 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1985 Sun #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 @@ main(int argc, char **argv) \*-----------------------------------------------*/ 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 */