From 243a7a2541ca3baf0eb49f259ac478f3140ea569 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 22 Dec 2011 22:07:02 +0100 Subject: [PATCH] command.c: set_key_flags: return void The return value was unused --- src/command.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.30.2