Removed #define for unknown_str
Debugging #define is very difficult. The performance overhead of static const char is negligible.
This commit is contained in:
parent
be12b6b350
commit
c4779c9b15
2 changed files with 70 additions and 70 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue