diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-19 22:43:36 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-19 22:44:07 +0100 |
commit | 2520b79fdf6c344c358e21518b1a5fbcccb21095 (patch) | |
tree | 54c0cee6c12412d438e9fd0cf06a4e2a19e8e996 /src/common | |
parent | 1207728a0c8824029a10d091e2258d242b77bd26 (diff) |
Make error messages great again
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/cerr.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |