* details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <locale.h>
#include <nl_types.h>
#endif
if ( system(line) != 0 )
{
- /* Utter Linux HACK, it seems the return value of GNU gencat is != 0
- even on success */
-#if !defined(linux)
fatal("primary .tmsg file would not gencat\n",0,9);
-#endif
}
}
#endif
if ( system(line) != 0 )
{
- /* Utter Linux HACK, it seems the return value of GNU gencat is != 0
- even on success */
-#if !defined(linux)
fatal("default .tmsg file would not gencat\n",0,9);
-#endif
}
}
/*
* 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: