aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-23 16:22:09 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-23 21:33:17 -0400
commitd56d62c1c0b504d6c414f4b970a4a996cdadd879 (patch)
tree4fd6d25416f71f44e8e7a676edf80617123924e1 /common
parentSwitch to using a function to parse booleans (diff)
downloadsway-d56d62c1c0b504d6c414f4b970a4a996cdadd879.tar.gz
sway-d56d62c1c0b504d6c414f4b970a4a996cdadd879.tar.zst
sway-d56d62c1c0b504d6c414f4b970a4a996cdadd879.zip
Remove unneeded const
Diffstat (limited to 'common')
-rw-r--r--common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/util.c b/common/util.c
index 33a0c77e..3fa0c03f 100644
--- a/common/util.c
+++ b/common/util.c
@@ -123,7 +123,7 @@ uint32_t parse_color(const char *color) {
123 return res; 123 return res;
124} 124}
125 125
126bool parse_boolean(const char *boolean, const bool current) { 126bool parse_boolean(const char *boolean, bool current) {
127 if (strcmp(boolean, "1") == 0 127 if (strcmp(boolean, "1") == 0
128 || strcmp(boolean, "yes") == 0 128 || strcmp(boolean, "yes") == 0
129 || strcmp(boolean, "on") == 0 129 || strcmp(boolean, "on") == 0