From 2520b79fdf6c344c358e21518b1a5fbcccb21095 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 19 Feb 2024 22:43:36 +0100 Subject: Make error messages great again --- src/common/cerr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/cerr.c b/src/common/cerr.c index 819df4a..98bca0f 100644 --- a/src/common/cerr.c +++ b/src/common/cerr.c @@ -19,7 +19,6 @@ #define SGR_BOLD "\33[1m" #define SGR_DONE "\33[0m" -#define SGR_WARN "\33[1;35m" #define SGR_ERR "\33[1;31m" int sizelen(size_t); @@ -27,7 +26,7 @@ int sizelen(size_t); static bool color; static const char *progname; -static const char *_bold, *_done, *_warn, *_err; +static const char *_bold, *_done, *_err; void cerrinit(const char *s) @@ -43,10 +42,9 @@ cerrinit(const char *s) if (color) { _bold = SGR_BOLD; _done = SGR_DONE; - _warn = SGR_WARN; _err = SGR_ERR; } else - _bold = _done = _warn = _err = ""; + _bold = _done = _err = ""; } void -- cgit v1.2.3