summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 13:49:44 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-03-15 13:49:44 (EDT)
commitb943c307eea1f8a25722d02cd6d2fab7b69cca4a (patch)
treea38d1d4de5ddf16a0fe717eed6309e7e4f4fc682 /src
parent008b7150d096d2f8d65983933e2d1e86ac5f4b3b (diff)
downloaddodge-balls-b943c307eea1f8a25722d02cd6d2fab7b69cca4a.zip
dodge-balls-b943c307eea1f8a25722d02cd6d2fab7b69cca4a.tar.gz
dodge-balls-b943c307eea1f8a25722d02cd6d2fab7b69cca4a.tar.bz2
db_err(): Don't quit()
Diffstat (limited to 'src')
-rw-r--r--src/output.c5
-rw-r--r--src/output.h2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/output.c b/src/output.c
index e92f04a..94b6710 100644
--- a/src/output.c
+++ b/src/output.c
@@ -19,7 +19,6 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include "init.h"
#include "output.h"
void
@@ -47,7 +46,7 @@ db_warn(const char *fmt, ...)
}
void
-db_err(int status, const char *fmt, ...)
+db_err(const char *fmt, ...)
{
va_list ap;
@@ -56,6 +55,4 @@ db_err(int status, const char *fmt, ...)
vprintf(fmt, ap);
va_end(ap);
putchar('\n');
-
- quit(status);
}
diff --git a/src/output.h b/src/output.h
index 59a7c6c..11737c6 100644
--- a/src/output.h
+++ b/src/output.h
@@ -21,6 +21,6 @@
void db_dbg(const char *fmt, ...);
void db_warn(const char *fmt, ...);
-void db_err(int status, const char *fmt, ...);
+void db_err(const char *fmt, ...);
#endif /* DB_OUTPUT_H_ */