summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2001-08-29 18:22:56 +0000
committerjsm <jsm@NetBSD.org>2001-08-29 18:22:56 +0000
commite340c0bc1403b003dd50c47495ccd20e821329c7 (patch)
treed6fd90f8888ca8785dc3973dc213d924d4e2b42c
parenta40a66b71ad99dcb5d8dd2606c6b637c2f49c775 (diff)
downloadbsdgames-darwin-e340c0bc1403b003dd50c47495ccd20e821329c7.tar.gz
bsdgames-darwin-e340c0bc1403b003dd50c47495ccd20e821329c7.tar.zst
bsdgames-darwin-e340c0bc1403b003dd50c47495ccd20e821329c7.zip
Ensure trailing newline is present on error and warning messages (lost
in previous conversion from <err.h> functions to ISO C ones).
-rw-r--r--adventure/setup.c6
-rw-r--r--boggle/mkdict/mkdict.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/adventure/setup.c b/adventure/setup.c
index 0d2a42d2..2923a26d 100644
--- a/adventure/setup.c
+++ b/adventure/setup.c
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.8 2000/07/31 11:25:50 simonb Exp $ */
+/* $NetBSD: setup.c,v 1.9 2001/08/29 18:22:56 jsm Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@ static char copyright[] = "@(#) Copyright (c) 1991, 1993\n\
#if 0
static char sccsid[] = "@(#)setup.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: setup.c,v 1.8 2000/07/31 11:25:50 simonb Exp $";
+static char rcsid[] = "$NetBSD: setup.c,v 1.9 2001/08/29 18:22:56 jsm Exp $";
#endif
#endif /* not lint */
@@ -66,7 +66,7 @@ static char rcsid[] = "$NetBSD: setup.c,v 1.8 2000/07/31 11:25:50 simonb Exp $";
#include <stdlib.h>
#include "hdr.h" /* SEED lives in there; keep them coordinated. */
-#define USAGE "Usage: setup file > data.c (file is typically glorkz)"
+#define USAGE "Usage: setup file > data.c (file is typically glorkz)\n"
#define YES 1
#define NO 0
diff --git a/boggle/mkdict/mkdict.c b/boggle/mkdict/mkdict.c
index 3bcb8902..c47fbace 100644
--- a/boggle/mkdict/mkdict.c
+++ b/boggle/mkdict/mkdict.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mkdict.c,v 1.7 2000/07/31 11:28:48 simonb Exp $ */
+/* $NetBSD: mkdict.c,v 1.8 2001/08/29 18:22:56 jsm Exp $ */
/*-
* Copyright (c) 1993
@@ -44,7 +44,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)mkdict.c 8.1 (Berkeley) 6/11/93";
#else
static const char rcsid[] =
- "$NetBSD: mkdict.c,v 1.7 2000/07/31 11:28:48 simonb Exp $";
+ "$NetBSD: mkdict.c,v 1.8 2001/08/29 18:22:56 jsm Exp $";
#endif
#endif /* not lint */
@@ -82,7 +82,7 @@ main(argc, argv)
for (nwords = 1;
fgets(buf[current], MAXWORDLEN + 1, stdin) != NULL; ++nwords) {
if ((p = strchr(buf[current], '\n')) == NULL) {
- fprintf(stderr, "word too long: %s", buf[current]);
+ fprintf(stderr, "word too long: %s\n", buf[current]);
while ((ch = getc(stdin)) != EOF && ch != '\n')
;
if (ch == EOF)