aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 = {