X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ferror.c;h=1841ce4047379dc46db6cdb958f144ee64e6a11a;hp=599b91d0db06199cdd33264b3770d1450f7c40e4;hb=HEAD;hpb=fa591538beda05e6ce89323128705beabe4f543f diff --git a/sbr/error.c b/sbr/error.c index 599b91d..1841ce4 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -8,6 +8,7 @@ #include #include +#include /* @@ -28,14 +29,14 @@ advise(char *what, char *fmt, ...) ** print out error message and exit */ void -adios(char *what, char *fmt, ...) +adios(int status, char *what, char *fmt, ...) { va_list ap; va_start(ap, fmt); advertise(what, NULL, fmt, ap); va_end(ap); - exit(1); + exit(status); }