summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44c4e17)
raw | patch | inline | side by side (parent: 44c4e17)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Tue, 22 Nov 2011 22:09:35 +0000 (23:09 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 2 Dec 2011 11:08:34 +0000 (12:08 +0100) |
src/command.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index 67e0ad3b11a22a0181076fb0aa488dadf8d57403..2b586174c415d8f83666692c389d72ec4f13c793 100644 (file)
--- a/src/command.c
+++ b/src/command.c
int
check_key_bindings(command_definition_t *cp, char *buf, size_t bufsize)
{
- int i = 0;
+ int i;
int retval = 0;
if (cp == NULL)
cp = cmds;
- while (cp[i].name) {
+ for (i = 0; cp[i].name; i++)
cp[i].flags &= ~COMMAND_KEY_CONFLICT;
- i++;
- }
- i = 0;
- while (cp[i].name) {
+ for (i = 0; cp[i].name; i++) {
int j;
command_t cmd;
retval = -1;
}
}
- i++;
}
+
return retval;
}