Ensure trailing newline is present on error and warning messages (lost

in previous conversion from <err.h> functions to ISO C ones).
This commit is contained in:
jsm 2001-08-29 18:22:56 +00:00
parent c50646a1f3
commit d929aa8aeb
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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)