From c210553a3902ba7155033661f73865c6c37cd569 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 18 Dec 2022 23:26:18 +0300 Subject: [PATCH] getting rid of old c99 array designators Signed-off-by: R4SAS --- libi2pd/Log.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libi2pd/Log.cpp b/libi2pd/Log.cpp index e90b5e2b..94e65691 100644 --- a/libi2pd/Log.cpp +++ b/libi2pd/Log.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2013-2020, The PurpleI2P Project +* Copyright (c) 2013-2022, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * @@ -18,11 +18,11 @@ namespace log { /** * @brief Maps our loglevel to their symbolic name */ - static const char * g_LogLevelStr[eNumLogLevels] = + static const char *g_LogLevelStr[eNumLogLevels] = { "none", // eLogNone "error", // eLogError - "warn", // eLogWarn + "warn", // eLogWarning "info", // eLogInfo "debug" // eLogDebug }; @@ -35,12 +35,12 @@ namespace log { static const char *LogMsgColors[] = { "", "", "", "", "", "" }; #else /* UNIX */ static const char *LogMsgColors[] = { - [eLogNone] = "\033[0m", /* reset */ - [eLogError] = "\033[1;31m", /* red */ - [eLogWarning] = "\033[1;33m", /* yellow */ - [eLogInfo] = "\033[1;36m", /* cyan */ - [eLogDebug] = "\033[1;34m", /* blue */ - [eNumLogLevels] = "\033[0m", /* reset */ + "\033[1;32m", /* none: green */ + "\033[1;31m", /* error: red */ + "\033[1;33m", /* warning: yellow */ + "\033[1;36m", /* info: cyan */ + "\033[1;34m", /* debug: blue */ + "\033[0m" /* reset */ }; #endif