aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-14 02:38:59 +1300
committerAndrew Chambers <[email protected]>2021-10-14 02:38:59 +1300
commitbc8b406043b23a5825320248cbad3ff73cd124fe (patch)
tree0b20398d179622e1fb106e3138539187cadb28c1 /util.c
parent3964d1dc536bce2e7da15569b42e9ad1c7258d78 (diff)
Minor refactor.
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/util.c b/util.c
index 9ed1c50..70a4cc0 100644
--- a/util.c
+++ b/util.c
@@ -1,6 +1,6 @@
#include "minias.h"
-static void vwarn(const char *fmt, va_list ap) {
+void vwarn(const char *fmt, va_list ap) {
vfprintf(stderr, fmt, ap);
if (fmt[0] && fmt[strlen(fmt) - 1] == ':') {
putc(' ', stderr);
@@ -10,15 +10,6 @@ static void vwarn(const char *fmt, va_list ap) {
}
}
-void lfatal(const char *fmt, ...) {
- va_list ap;
- fprintf(stderr, "%ld: ", curlineno);
- va_start(ap, fmt);
- vwarn(fmt, ap);
- va_end(ap);
- exit(1);
-}
-
void fatal(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);