aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-18 22:09:23 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 22:09:23 +0100
commit4eb970945e85a5f7c5ac768a44d5bca03c824b97 (patch)
tree519464793f14956adf9a2530b35e74aecc458272 /src/screen_search.c
parente314afc17e7710e830013fad56b9840530b7ceba (diff)
downloadmpd-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 'src/screen_search.c')
-rw-r--r--src/screen_search.c12
1 files changed, 6 insertions, 6 deletions
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 = {