diff options
| author | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
|---|---|---|
| committer | Dusan Durech <dusan@debian.debian> | 2009-03-26 15:04:00 +0100 |
| commit | e5e0724740215565404dba837f8c3072f9fe7413 (patch) | |
| tree | 39d80e50e12a9fffe47834cd375212017b22025b /src/client/hotKey.c | |
| parent | df1f2b7cccb241db5500453aa65d11896f54ce6d (diff) | |
fix warnings...
Diffstat (limited to 'src/client/hotKey.c')
| -rw-r--r-- | src/client/hotKey.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/hotKey.c b/src/client/hotKey.c index 30287ee..228e50d 100644 --- a/src/client/hotKey.c +++ b/src/client/hotKey.c @@ -74,7 +74,7 @@ void registerHotKey(SDLKey key, void (*handler) ()) void unregisterHotKey(SDLKey key) { hotKey_t *hotkey; - int index; + int my_index; hotkey = findHotkey(key); @@ -82,9 +82,9 @@ void unregisterHotKey(SDLKey key) assert(!"This hotkey not register"); } - index = searchListItem(listHotKey, hotkey); - assert(index != -1); - delListItem(listHotKey, index, destroyHotKey); + my_index = searchListItem(listHotKey, hotkey); + assert(my_index != -1); + delListItem(listHotKey, my_index, destroyHotKey); } void enableHotKey(SDLKey key) |