Skip to content

Commit

Permalink
Remove unneeded const
Browse files Browse the repository at this point in the history
  • Loading branch information
RedSoxFan committed Jul 23, 2018
1 parent f8575a7 commit e0919ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0919ef

Please sign in to comment.