From e5e0724740215565404dba837f8c3072f9fe7413 Mon Sep 17 00:00:00 2001 From: Dusan Durech Date: Thu, 26 Mar 2009 15:04:00 +0100 Subject: fix warnings... --- src/client/hotKey.c | 8 ++++---- src/client/interface.c | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/client') 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) diff --git a/src/client/interface.c b/src/client/interface.c index 57a9bee..fba9521 100644 --- a/src/client/interface.c +++ b/src/client/interface.c @@ -28,8 +28,7 @@ static Uint32 g_win_flags = SDL_OPENGL; static bool_t isInterfaceInit = FALSE; // flag, kterym se ridi zarazovani klaves do bufferu -bool_t keyboardBufferEnabled = FALSE; -bool_t isSlowHack; +static bool_t keyboardBufferEnabled = FALSE; bool_t isInterfaceInicialized() { -- cgit v1.2.3