mhl and mhbuild ignore to long lines
[mmh] / sbr / error.c
index d8313ce..1841ce4 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <h/mh.h>
 #include <errno.h>
+#include <stdarg.h>
 
 
 /*
@@ -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);
-       done(1);
+       exit(status);
 }