X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fconf.c;h=03ba80dd7407baa7ef78bc898e57afd785974b89;hb=6d21f051228ce9aa492bb4f7a1957a9525208217;hp=5d8ec5e8bcbd9937ee64067948c08be6de20c65c;hpb=1abf5e35c54a823d60d2388750990e0edf6a83b6;p=ncmpc.git diff --git a/src/conf.c b/src/conf.c index 5d8ec5e..03ba80d 100644 --- a/src/conf.c +++ b/src/conf.c @@ -122,7 +122,7 @@ parse_key_value(char *str, char **end) } } -static int +static bool parse_key_definition(char *str) { /* get the command name */ @@ -139,7 +139,7 @@ parse_key_definition(char *str) /* the hotkey configuration contains an unknown command */ print_error(_("Unknown command"), buf); - return -1; + return false; } /* skip whitespace */ @@ -152,7 +152,7 @@ parse_key_definition(char *str) if (*buf == 0) { /* the hotkey configuration line is incomplete */ print_error(_("Incomplete hotkey configuration"), str); - return -1; + return false; } /* parse key values */ @@ -170,7 +170,7 @@ parse_key_definition(char *str) } if (key < 0) - return -1; + return false; return assign_keys(cmd, keys); }