projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is mmh-0.3
[mmh]
/
sbr
/
error.c
diff --git
a/sbr/error.c
b/sbr/error.c
index
599b91d
..
1841ce4
100644
(file)
--- a/
sbr/error.c
+++ b/
sbr/error.c
@@
-8,6
+8,7
@@
#include <h/mh.h>
#include <errno.h>
#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
** 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);
{
va_list ap;
va_start(ap, fmt);
advertise(what, NULL, fmt, ap);
va_end(ap);
- exit(1);
+ exit(status);
}
}