From 23d2ba3445b439d494c16a8d9cede550b807ce68 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 22 Mar 2014 19:06:54 -0600 Subject: [PATCH] localized/util/merge.h: include string.h and fix up some warnings --- cde/programs/localized/util/merge.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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: -- 2.25.1