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_search.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/screen_search.c') diff --git a/src/screen_search.c b/src/screen_search.c index e5239b0c7..277a9e277 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -410,7 +410,7 @@ get_title(char *str, size_t size) return str; } -static int +static bool search_cmd(mpdclient_t *c, command_t cmd) { switch (cmd) { @@ -431,18 +431,18 @@ search_cmd(mpdclient_t *c, command_t cmd) sync_highlights(c, browser.filelist); } search_repaint(); - return 1; + return true; case CMD_SCREEN_SEARCH: search_new(c); search_repaint(); - return 1; + return true; case CMD_CLEAR: search_clear(c, TRUE); list_window_reset(browser.lw); search_repaint(); - return 1; + return true; default: break; @@ -452,10 +452,10 @@ search_cmd(mpdclient_t *c, command_t cmd) browser_cmd(&browser, c, cmd)) { if (screen_is_visible(&screen_search)) search_repaint(); - return 1; + return true; } - return 0; + return false; } const struct screen_functions screen_search = { -- cgit v1.2.3