From 2ebf940bf09a333bc16b77d4f19e4ed2bff4d3fa Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 9 Apr 2019 21:25:11 +0200 Subject: [PATCH] PrintAndLogEx: use const on char *fmt --- client/ui.c | 2 +- client/ui.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ui.c b/client/ui.c index 216fbccff..1e5c145be 100644 --- a/client/ui.c +++ b/client/ui.c @@ -45,7 +45,7 @@ void PrintAndLogOptions(char *str[][2], size_t size, size_t space) { } PrintAndLogEx(NORMAL, "%s", buff); } -void PrintAndLogEx(logLevel_t level, char *fmt, ...) { +void PrintAndLogEx(logLevel_t level, const char *fmt, ...) { // skip debug messages if client debugging is turned off i.e. 'DATA SETDEBUG 0' if (g_debugMode == 0 && level == DEBUG) diff --git a/client/ui.h b/client/ui.h index cace7e6fd..774579725 100644 --- a/client/ui.h +++ b/client/ui.h @@ -35,7 +35,7 @@ void ShowGraphWindow(void); void RepaintGraphWindow(void); void PrintAndLog(char *fmt, ...); void PrintAndLogOptions(char *str[][2], size_t size, size_t space); -void PrintAndLogEx(logLevel_t level, char *fmt, ...); +void PrintAndLogEx(logLevel_t level, const char *fmt, ...); void SetLogFilename(char *fn); void SetFlushAfterWrite(bool value);