diff options
author | Max Kellermann <max@duempel.org> | 2008-11-18 22:09:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-18 22:09:23 +0100 |
commit | 4eb970945e85a5f7c5ac768a44d5bca03c824b97 (patch) | |
tree | 519464793f14956adf9a2530b35e74aecc458272 /src/screen_artist.c | |
parent | e314afc17e7710e830013fad56b9840530b7ceba (diff) | |
download | mpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.tar.gz mpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.tar.xz mpd-4eb970945e85a5f7c5ac768a44d5bca03c824b97.zip |
screen: method cmd() returns bool
Return true/false instead of 1/0.
Diffstat (limited to '')
-rw-r--r-- | src/screen_artist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c index 74fd96c1a..01fbc9c1f 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -461,7 +461,7 @@ string_array_find(GPtrArray *array, const char *value) return -1; } -static int +static bool artist_cmd(mpdclient_t *c, command_t cmd) { char *selected; @@ -632,7 +632,7 @@ artist_cmd(mpdclient_t *c, command_t cmd) case CMD_SCREEN_UPDATE: reload_lists(c); screen_status_printf(_("Screen updated!")); - return 0; + return false; case CMD_LIST_FIND: case CMD_LIST_RFIND: @@ -643,13 +643,13 @@ artist_cmd(mpdclient_t *c, command_t cmd) screen_find(browser.lw, artist_list->len, cmd, artist_lw_callback, artist_list); artist_repaint(); - return 1; + return true; case LIST_ALBUMS: screen_find(browser.lw, album_list->len + 2, cmd, artist_lw_callback, album_list); artist_repaint(); - return 1; + return true; case LIST_SONGS: /* handled by browser_cmd() */ @@ -665,10 +665,10 @@ artist_cmd(mpdclient_t *c, command_t cmd) if (artist_lw_cmd(c, cmd)) { if (screen_is_visible(&screen_artist)) artist_repaint(); - return 1; + return true; } - return 0; + return false; } const struct screen_functions screen_artist = { |