diff options
author | Aaron Marcher <me@drkhsh.at> | 2017-08-12 13:27:30 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2017-08-12 13:27:30 +0200 |
commit | c4779c9b15b5138d1dfcf1d706d88baff36f5bd3 (patch) | |
tree | f63a3236b6ff0231dec1c61d8ce2cc9486fcedeb /config.def.h | |
parent | be12b6b350c7cf2ea826d3988371efb680b4ba30 (diff) |
Removed #define for unknown_str
Debugging #define is very difficult. The performance overhead of static const
char is negligible.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |