mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
getting rid of old c99 array designators
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
a315e4ce62
commit
c210553a39
@ -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
|
* 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
|
* @brief Maps our loglevel to their symbolic name
|
||||||
*/
|
*/
|
||||||
static const char * g_LogLevelStr[eNumLogLevels] =
|
static const char *g_LogLevelStr[eNumLogLevels] =
|
||||||
{
|
{
|
||||||
"none", // eLogNone
|
"none", // eLogNone
|
||||||
"error", // eLogError
|
"error", // eLogError
|
||||||
"warn", // eLogWarn
|
"warn", // eLogWarning
|
||||||
"info", // eLogInfo
|
"info", // eLogInfo
|
||||||
"debug" // eLogDebug
|
"debug" // eLogDebug
|
||||||
};
|
};
|
||||||
@ -35,12 +35,12 @@ namespace log {
|
|||||||
static const char *LogMsgColors[] = { "", "", "", "", "", "" };
|
static const char *LogMsgColors[] = { "", "", "", "", "", "" };
|
||||||
#else /* UNIX */
|
#else /* UNIX */
|
||||||
static const char *LogMsgColors[] = {
|
static const char *LogMsgColors[] = {
|
||||||
[eLogNone] = "\033[0m", /* reset */
|
"\033[1;32m", /* none: green */
|
||||||
[eLogError] = "\033[1;31m", /* red */
|
"\033[1;31m", /* error: red */
|
||||||
[eLogWarning] = "\033[1;33m", /* yellow */
|
"\033[1;33m", /* warning: yellow */
|
||||||
[eLogInfo] = "\033[1;36m", /* cyan */
|
"\033[1;36m", /* info: cyan */
|
||||||
[eLogDebug] = "\033[1;34m", /* blue */
|
"\033[1;34m", /* debug: blue */
|
||||||
[eNumLogLevels] = "\033[0m", /* reset */
|
"\033[0m" /* reset */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user