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 | |
| parent | df1f2b7cccb241db5500453aa65d11896f54ce6d (diff) | |
fix warnings...
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/hotKey.c | 8 | ||||
| -rw-r--r-- | src/client/interface.c | 3 |
2 files changed, 5 insertions, 6 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) 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() { |