handleKeyPress: Fix shadowing of global 'index' variable
commit9baff1363c090e465ad636c3e6f82b21614f0188
authorCarlos R. Mafra <crmafra@gmail.com>
Mon, 17 Aug 2009 22:56:09 +0000 (18 00:56 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 17 Aug 2009 22:56:09 +0000 (18 00:56 +0200)
tree0636871b594dc341e2eee81efe4dd72804e28652
parentf18567db9ad94cf732cf84caa95f92fe2b653545
handleKeyPress: Fix shadowing of global 'index' variable

GCC warns:

event.c: In function 'handleDestroyNotify':
event.c:676: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:309: warning: shadowed declaration is here
event.c: In function 'handleKeyPress':
event.c:1435: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:309: warning: shadowed declaration is here

So let's rename "index" to "widx".

Note that there is a more serious shadowing in this same function,

event.c:1686: warning: declaration of 'wwin' shadows a previous local

but this is more complicated to solve.
src/event.c