From: Jon Trulson Date: Sun, 23 Mar 2014 01:06:54 +0000 (-0600) Subject: localized/util/merge.h: include string.h and fix up some warnings X-Git-Tag: 2.2.2~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23d2ba3445b439d494c16a8d9cede550b807ce68;p=oweals%2Fcde.git localized/util/merge.h: include string.h and fix up some warnings --- diff --git a/cde/programs/localized/util/merge.c b/cde/programs/localized/util/merge.c index 553e503a..379d64ff 100644 --- a/cde/programs/localized/util/merge.c +++ b/cde/programs/localized/util/merge.c @@ -93,6 +93,7 @@ #include #include +#include #include #include @@ -310,17 +311,20 @@ int file; /* 0: Primary message file, 1: Default message file */ /* * Display error message and exit program. + * + * file == file in which the error found 0: Primary message file + * 1: Default message file + * 2: Template file + * 9: N/A */ -void fatal (m, line, file) -char *m; -int line; /* line where the error found */ -int file; /* file in which the error found 0: Primary message file */ +void fatal (char *m, int line, int file) +/* file in which the error found 0: Primary message file */ /* 1: Default message file */ /* 2: Template file */ /* 9: N/A */ { fprintf (stderr, "*** Fatal: "); - fprintf (stderr, m); + fprintf (stderr, "%s", m); switch(file) { case 0: