X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=ce35de919b5b31d2d579f13bece867c7010fb795;hp=d299efc4d4e07f97b2c864cd4777221b7cffadd7;hb=19b66d5b25c2c07b7bcceaa7c128ab60f9b34793;hpb=2abb9a7cfb0930e27062088734d306e7d78e4cc2 diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d299efc..ce35de9 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -44,6 +44,7 @@ #include #include #include +#include #ifdef HAVE_SYS_TIME_H # include @@ -291,7 +292,7 @@ compile_error(char *str, char *cp) advise(NULL, "\"%s\": format compile error - %s", &usr_fstring[errpos-errctx], str); - adios(NULL, "%*s", errctx+1, "^"); + adios(EX_SOFTWARE, NULL, "%*s", errctx+1, "^"); } /* @@ -329,7 +330,7 @@ fmt_compile(char *fstring, struct format **fmt) next_fp = formatvec = (struct format *)calloc((size_t) i, sizeof(struct format)); if (next_fp == NULL) - adios(NULL, "unable to allocate format storage"); + adios(EX_OSERR, NULL, "unable to allocate format storage"); ncomp = 0; infunction = 0;