From: Jonathan Neuschäfer Date: Thu, 22 Dec 2011 21:07:02 +0000 (+0100) Subject: command.c: set_key_flags: return void X-Git-Tag: release-0.20~25 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=243a7a2541ca3baf0eb49f259ac478f3140ea569;p=ncmpc.git command.c: set_key_flags: return void The return value was unused --- diff --git a/src/command.c b/src/command.c index e6f2f1d..4f52560 100644 --- a/src/command.c +++ b/src/command.c @@ -335,17 +335,15 @@ command_dump_keys(void) #ifndef NCMPC_MINI -static int +static void set_key_flags(command_definition_t *cp, command_t command, int flags) { for (int i = 0; cp[i].name; i++) { if (cp[i].command == command) { cp[i].flags |= flags; - return 0; + break; } } - - return 1; } #endif