mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Remove unneeded const
This commit is contained in:
parent
863914ec95
commit
d56d62c1c0
|
@ -123,7 +123,7 @@ uint32_t parse_color(const char *color) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool parse_boolean(const char *boolean, const bool current) {
|
bool parse_boolean(const char *boolean, bool current) {
|
||||||
if (strcmp(boolean, "1") == 0
|
if (strcmp(boolean, "1") == 0
|
||||||
|| strcmp(boolean, "yes") == 0
|
|| strcmp(boolean, "yes") == 0
|
||||||
|| strcmp(boolean, "on") == 0
|
|| strcmp(boolean, "on") == 0
|
||||||
|
|
|
@ -56,7 +56,7 @@ uint32_t parse_color(const char *color);
|
||||||
* toggling is not desired, pass in true for current so that toggling values
|
* toggling is not desired, pass in true for current so that toggling values
|
||||||
* get parsed as not true.
|
* 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
|
* Given a path string, recurseively resolves any symlinks to their targets
|
||||||
|
|
Loading…
Reference in a new issue