summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/hotKey.c8
-rw-r--r--src/client/interface.c3
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()
{