summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2020-05-01 00:36:38 +0200
committerOrestis Floros <orestisflo@gmail.com>2020-05-01 01:06:38 +0200
commita68524ee4a7cbf120382a7b678a7820f07b10bf5 (patch)
treedc631befd90ecd34ac2fac9ddf1199e0ca006bbb /include/i3status.h
parent57218e98de20ef2a779f4b33a6d742d52a0bf0f8 (diff)
Fix various warnings
- unused variable ‘walk’ [-Wunused-variable] - implicit declaration of built-in function ‘free’ [-Wimplicit-function-declaration] - initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] - variable 'ram_used' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]. This is actually easily reproducible by specifying `memory_used_method = "XXX"`. - comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] (for `exponent`)
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/i3status.h b/include/i3status.h
index e0dff2b..6e5278f 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -206,9 +206,9 @@ char *trim(const char *s);
/* src/format_placeholders.c */
typedef struct {
/* The placeholder to be replaced, e.g., "%title". */
- char *name;
+ const char *name;
/* The value this placeholder should be replaced with. */
- char *value;
+ const char *value;
} placeholder_t;
char *format_placeholders(const char *format, placeholder_t *placeholders, int num);