From 91ccaaa80d33efd5897cacf714cb14405c2988f2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Sep 2022 11:04:56 -0700 Subject: Simplify printing of warning header Signed-off-by: Alan Coopersmith --- header.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/header.c b/header.c index f72461a..1aeaeec 100644 --- a/header.c +++ b/header.c @@ -52,16 +52,14 @@ in this Software without prior written authorization from The Open Group. unsigned long pointSize; unsigned long yResolution; -static const char *warning[] = { - "COMMENT ", - "COMMENT WARNING: This bdf file was generated from a font server using", - "COMMENT fstobdf. The resulting font is subject to the same copyright,", - "COMMENT license, and trademark restrictions as the original font. The", - "COMMENT authors and distributors of fstobdf disclaim all liability for", - "COMMENT misuse of the program or its output.", - "COMMENT ", - NULL -}; +static const char *warning = + "COMMENT \n" + "COMMENT WARNING: This bdf file was generated from a font server using\n" + "COMMENT fstobdf. The resulting font is subject to the same copyright,\n" + "COMMENT license, and trademark restrictions as the original font. The\n" + "COMMENT authors and distributors of fstobdf disclaim all liability for\n" + "COMMENT misuse of the program or its output.\n" + "COMMENT \n"; static char * FindStringProperty(const char *propName, @@ -153,8 +151,7 @@ EmitHeader(FILE *outFile, fwrite(cp, 1, len, outFile); fputc('\n', outFile); } - for (const char **cpp = warning; *cpp; cpp++) - fprintf(outFile, "%s\n", *cpp); + fputs(warning, outFile); /* * FONT name -- cgit v1.2.3