Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Remove bogus extra \n from syntax error message.



details:   https://anonhg.NetBSD.org/src/rev/db31b3362dd7
branches:  trunk
changeset: 823778:db31b3362dd7
user:      kre <kre%NetBSD.org@localhost>
date:      Tue May 09 02:47:47 2017 +0000

description:
Remove bogus extra \n from syntax error message.

diffstat:

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

diffs (27 lines):

diff -r f09a2d27ce10 -r db31b3362dd7 bin/sh/parser.c
--- a/bin/sh/parser.c   Tue May 09 02:30:49 2017 +0000
+++ b/bin/sh/parser.c   Tue May 09 02:47:47 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parser.c,v 1.123 2017/05/04 04:37:51 kre Exp $ */
+/*     $NetBSD: parser.c,v 1.124 2017/05/09 02:47:47 kre Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)parser.c   8.7 (Berkeley) 5/16/95";
 #else
-__RCSID("$NetBSD: parser.c,v 1.123 2017/05/04 04:37:51 kre Exp $");
+__RCSID("$NetBSD: parser.c,v 1.124 2017/05/09 02:47:47 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -1956,7 +1956,7 @@
 STATIC void
 synerror(const char *msg)
 {
-       error("%d: Syntax error: %s\n", startlinno, msg);
+       error("%d: Syntax error: %s", startlinno, msg);
        /* NOTREACHED */
 }
 



Home | Main Index | Thread Index | Old Index