aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/util.c b/src/util.c
index 5bdabfa..b4a2e15 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3,7 +3,7 @@
void die(const char* fmt, ...) {
va_list ap;
- fprintf(stderr, "== FATAL ERROR ==\n");
+ fprintf(stderr, "== ERROR ==\n");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
@@ -61,22 +61,3 @@ void log_war(const char* fmt, ...) {
fprintf(stderr, "\n");
}
-
-void log_err(const char* fmt, ...) {
- va_list ap;
-
- fprintf(stderr, "== ERROR ==");
-
- va_start(ap, fmt);
- vfprintf(stderr, fmt, ap);
- va_end(ap);
-
- if (fmt[0] && fmt[strlen(fmt) - 1] == ':') {
- fputc(' ', stderr);
- perror(NULL);
- } else {
- fputc('\n', stderr);
- }
-
- fprintf(stderr, "\n");
-}