Attempt to deconfuse the coverage analyzer.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index 26bb3325fce1b5a3402beaca1566da5cf47563e0..9899b08681b89443a814a09c55cf891f5d9d355a 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -658,4 +658,10 @@ void DATIME(long* d, long* t)
     *t = (long) tv.tv_usec;
 }
 
+void bug(enum bugtype num, const char *error_string)
+{
+   fprintf(stderr, "Fatal error %d, %s.\n", num, error_string);
+   exit(EXIT_FAILURE);
+}
+
 /* end */