From a32a1221fcd784ccd82c54d4a263f4f270c55701 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Sat, 24 Dec 2011 18:28:05 +0100 Subject: [PATCH] screen_keydef: clean up keydef_cmd return values --- src/screen_keydef.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/screen_keydef.c b/src/screen_keydef.c index cd340f8..6ed3e33 100644 --- a/src/screen_keydef.c +++ b/src/screen_keydef.c @@ -346,16 +346,15 @@ keydef_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd) keydef_repaint(); } - break; + return true; case CMD_DELETE: if (subcmd >= 0 && lw->selected >= STATIC_SUB_ITEMS) delete_key(subcmd, lw->selected - STATIC_SUB_ITEMS); return true; - break; case CMD_SAVE_PLAYLIST: apply_keys(); save_keys(); - break; + return true; case CMD_LIST_FIND: case CMD_LIST_RFIND: case CMD_LIST_FIND_NEXT: @@ -365,9 +364,11 @@ keydef_cmd(G_GNUC_UNUSED struct mpdclient *c, command_t cmd) return true; default: - break; + return false; } + /* unreachable */ + assert(0); return false; } -- 2.30.2