From 4eb970945e85a5f7c5ac768a44d5bca03c824b97 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 18 Nov 2008 22:09:23 +0100 Subject: screen: method cmd() returns bool Return true/false instead of 1/0. --- src/screen_artist.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/screen_artist.c') 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 = { -- cgit v1.2.3