Code

command.c: set_key_flags: return void
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 22 Dec 2011 21:07:02 +0000 (22:07 +0100)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Thu, 22 Dec 2011 21:42:04 +0000 (22:42 +0100)
The return value was unused

src/command.c

index e6f2f1d3aae0034b0419efcb9168872c362ed63e..4f525605141784058873f04a00c9c29832a3c63a 100644 (file)
@@ -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