X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=ce35de919b5b31d2d579f13bece867c7010fb795;hb=43c31a90ba57b93a5504c39a28b9ef55a9b6e801;hp=1fc5f36d9984831c7609bb64e0f6d005d3b5b47b;hpb=db62cda50055368e5f4ac51df787053f70706c30;p=mmh diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 1fc5f36..ce35de9 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -43,6 +43,8 @@ #include #include #include +#include +#include #ifdef HAVE_SYS_TIME_H # include @@ -290,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, "^"); } /* @@ -328,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;