Module Name: src
Committed By: kre
Date: Tue May 9 02:47:47 UTC 2017
Modified Files:
src/bin/sh: parser.c
Log Message:
Remove bogus extra \n from syntax error message.
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 src/bin/sh/parser.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/parser.c
diff -u src/bin/sh/parser.c:1.123 src/bin/sh/parser.c:1.124
--- src/bin/sh/parser.c:1.123 Thu May 4 04:37:51 2017
+++ src/bin/sh/parser.c Tue May 9 02:47:47 2017
@@ -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 @@ synexpect(int token, const char *text)
STATIC void
synerror(const char *msg)
{
- error("%d: Syntax error: %s\n", startlinno, msg);
+ error("%d: Syntax error: %s", startlinno, msg);
/* NOTREACHED */
}