diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-10 11:04:56 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-10 11:04:56 -0700 |
commit | 91ccaaa80d33efd5897cacf714cb14405c2988f2 (patch) | |
tree | 9b4de4f5efaf0d3a88d08e9005ca26f7920d994b /header.c | |
parent | ee534667c6fc9a9b3364bb753f935d5a2f6a81e3 (diff) |
Simplify printing of warning header
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'header.c')
-rw-r--r-- | header.c | 21 |
1 files changed, 9 insertions, 12 deletions
@@ -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 |