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 | 3c3fbd89f7e2eea4ec8e6b94f2a39d091353a99f (patch) | |
tree | f63a3236b6ff0231dec1c61d8ce2cc9486fcedeb /config.def.h | |
parent | 5fd28b0b38f70bb3f86ec1b9f63cca21e19ea4ee (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 |