aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_keydef.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_keydef.c')
-rw-r--r--src/screen_keydef.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 4e42b386f..509a44fc5 100644
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
@@ -292,7 +292,7 @@ keydef_paint(void)
list_window_paint(lw, list_callback, NULL);
}
-static int
+static bool
keydef_cmd(mpd_unused mpdclient_t *c, command_t cmd)
{
int length = LIST_LENGTH();
@@ -302,7 +302,7 @@ keydef_cmd(mpd_unused mpdclient_t *c, command_t cmd)
if (list_window_cmd(lw, length, cmd)) {
keydef_repaint();
- return 1;
+ return true;
}
switch(cmd) {
@@ -331,11 +331,11 @@ keydef_cmd(mpd_unused mpdclient_t *c, command_t cmd)
subcmd,
lw->selected - STATIC_SUB_ITEMS);
}
- return 1;
+ return true;
case CMD_DELETE:
if (subcmd >= 0 && lw->selected >= STATIC_SUB_ITEMS)
delete_key(subcmd, lw->selected - STATIC_SUB_ITEMS);
- return 1;
+ return true;
break;
case CMD_SAVE_PLAYLIST:
apply_keys();
@@ -348,13 +348,13 @@ keydef_cmd(mpd_unused mpdclient_t *c, command_t cmd)
screen_find(lw, length,
cmd, list_callback, NULL);
keydef_repaint();
- return 1;
+ return true;
default:
break;
}
- return 0;
+ return false;
}
const struct screen_functions screen_keydef = {