logs: use anonymous struct

This commit is contained in:
Robert Swiecki
2018-12-16 07:47:22 +01:00
parent 432c38ad23
commit 40083ed115

View File

@@ -92,13 +92,12 @@ void logMsg(enum llevel_t ll, const char* fn, int ln, bool perr, const char* fmt
if (perr) {
snprintf(strerr, sizeof(strerr), "%s", strerror(errno));
}
struct ll_t {
struct {
const char* const descr;
const char* const prefix;
const bool print_funcline;
const bool print_time;
};
static struct ll_t const logLevels[] = {
} static const logLevels[] = {
{"D", "\033[0;4m", true, true},
{"I", "\033[1m", false, true},
{"W", "\033[0;33m", true, true},