aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-07-23 16:22:09 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-07-23 21:33:17 -0400
commitd56d62c1c0b504d6c414f4b970a4a996cdadd879 (patch)
tree4fd6d25416f71f44e8e7a676edf80617123924e1
parent863914ec9574eb58cb0746d59f216997c4863cdf (diff)
downloadsway-d56d62c1c0b504d6c414f4b970a4a996cdadd879.tar.xz
Remove unneeded const
-rw-r--r--common/util.c2
-rw-r--r--include/util.h2
2 files changed, 2 insertions, 2 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) {
return res;
}
-bool parse_boolean(const char *boolean, const bool current) {
+bool parse_boolean(const char *boolean, bool current) {
if (strcmp(boolean, "1") == 0
|| strcmp(boolean, "yes") == 0
|| strcmp(boolean, "on") == 0
diff --git a/include/util.h b/include/util.h
index 40f2c7b1..bda941ce 100644
--- a/include/util.h
+++ b/include/util.h
@@ -56,7 +56,7 @@ uint32_t parse_color(const char *color);
* toggling is not desired, pass in true for current so that toggling values
* get parsed as not true.
*/
-bool parse_boolean(const char *boolean, const bool current);
+bool parse_boolean(const char *boolean, bool current);
/**
* Given a path string, recurseively resolves any symlinks to their targets