From c4779c9b15b5138d1dfcf1d706d88baff36f5bd3 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 12 Aug 2017 13:27:30 +0200 Subject: Removed #define for unknown_str Debugging #define is very difficult. The performance overhead of static const char is negligible. --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 2b06f34..1797a9b 100644 --- a/config.def.h +++ b/config.def.h @@ -4,7 +4,7 @@ static const int update_interval = 1; /* text to show if no value can be retrieved */ -#define UNKNOWN_STR "n/a" +static const char unknown_str[] = "n/a"; /* maximum output string length */ #define MAXLEN 2048 -- cgit v1.2.3