From 6f12277e37d16a7de9d3f3079688c43b07921b0a Mon Sep 17 00:00:00 2001 From: Jon TURNEY Date: Thu, 14 Oct 2010 22:44:53 +0100 Subject: Cygwin/X: Make g_hhookKeyboardLL static Make g_hhookKeyboardLL static, it's only used in winkeyhook.c Also remove unused externs Signed-off-by: Jon TURNEY Reviewed-by: Colin Harrison --- hw/xwin/winglobals.c | 1 - hw/xwin/winkeyhook.c | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/hw/xwin/winglobals.c b/hw/xwin/winglobals.c index f3f01d7da..55b0f16d4 100644 --- a/hw/xwin/winglobals.c +++ b/hw/xwin/winglobals.c @@ -73,7 +73,6 @@ char * g_pszCommandLine = NULL; Bool g_fSilentFatalError = FALSE; DWORD g_dwCurrentThreadID = 0; Bool g_fKeyboardHookLL = FALSE; -HHOOK g_hhookKeyboardLL = NULL; HWND g_hwndKeyboardFocus = NULL; Bool g_fNoHelpMessageBox = FALSE; Bool g_fSoftwareCursor = FALSE; diff --git a/hw/xwin/winkeyhook.c b/hw/xwin/winkeyhook.c index 2d6ed18b7..fe1156dcf 100644 --- a/hw/xwin/winkeyhook.c +++ b/hw/xwin/winkeyhook.c @@ -34,13 +34,7 @@ #include "win.h" -/* - * References to external symbols - */ - -extern HHOOK g_hhookKeyboardLL; -extern DWORD g_dwCurrentThreadID; -extern HWND g_hwndKeyboardFocus; +static HHOOK g_hhookKeyboardLL = NULL; /* -- cgit v1.2.3