Source-Changes-HG archive

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

[src/trunk]: src/games Ensure trailing newline is present on error and warnin...



details:   https://anonhg.NetBSD.org/src/rev/19ba802abfb5
branches:  trunk
changeset: 514319:19ba802abfb5
user:      jsm <jsm%NetBSD.org@localhost>
date:      Wed Aug 29 18:22:56 2001 +0000

description:
Ensure trailing newline is present on error and warning messages (lost
in previous conversion from <err.h> functions to ISO C ones).

diffstat:

 games/adventure/setup.c      |  6 +++---
 games/boggle/mkdict/mkdict.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 955f04d223a8 -r 19ba802abfb5 games/adventure/setup.c
--- a/games/adventure/setup.c   Wed Aug 29 17:37:47 2001 +0000
+++ b/games/adventure/setup.c   Wed Aug 29 18:22:56 2001 +0000
@@ -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 @@
 #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 @@
 #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 -r 955f04d223a8 -r 19ba802abfb5 games/boggle/mkdict/mkdict.c
--- a/games/boggle/mkdict/mkdict.c      Wed Aug 29 17:37:47 2001 +0000
+++ b/games/boggle/mkdict/mkdict.c      Wed Aug 29 18:22:56 2001 +0000
@@ -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 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 @@
        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)



Home | Main Index | Thread Index | Old Index