From: Jonathan Neuschäfer Date: Sat, 24 Dec 2011 17:28:05 +0000 (+0100) Subject: screen_keydef: clean up keydef_cmd return values X-Git-Tag: release-0.20~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a32a1221fcd784ccd82c54d4a263f4f270c55701;p=ncmpc.git screen_keydef: clean up keydef_cmd return values --- 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; }