summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 652bfd6)
raw | patch | inline | side by side (parent: 652bfd6)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Thu, 22 Dec 2011 21:07:02 +0000 (22:07 +0100) | ||
committer | Jonathan 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 | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index e6f2f1d3aae0034b0419efcb9168872c362ed63e..4f525605141784058873f04a00c9c29832a3c63a 100644 (file)
--- a/src/command.c
+++ b/src/command.c
#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