diff options
author | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-15 12:27:29 +0200 |
commit | 08c055113f2eacd42fde57b952b548ca45e29eb2 (patch) | |
tree | 2b9a9c41709396532d52020f6c980077748033c8 /src/command.c | |
parent | 8fd244cc61c74522b93b59e75594902a01f936b5 (diff) | |
download | mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.tar.gz mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.tar.xz mpd-08c055113f2eacd42fde57b952b548ca45e29eb2.zip |
fix shadow warnings
Rename local variables and function parameters, so they don't shadow
global variables.
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/command.c b/src/command.c index 3a5e6794c..23c15b366 100644 --- a/src/command.c +++ b/src/command.c @@ -381,16 +381,16 @@ get_key_command_from_name(char *name) command_t -find_key_command(int key, command_definition_t *cmds) +find_key_command(int key, command_definition_t *c) { int i; i=0; - while (key && cmds && cmds[i].name) { - if (cmds[i].keys[0] == key || - cmds[i].keys[1] == key || - cmds[i].keys[2] == key) - return cmds[i].command; + while (key && c && c[i].name) { + if (c[i].keys[0] == key || + c[i].keys[1] == key || + c[i].keys[2] == key) + return c[i].command; i++; } |