diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2010-02-26 13:31:18 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-10-19 15:01:19 +0100 |
commit | d11761c6a6dd2a9963dfd3bcb313f1b2525387fc (patch) | |
tree | 34c595de79c0bf6546fd7af03cea93edd452de79 /hw/xwin/winmouse.c | |
parent | 10bf8345cf15c6030147a9edb7f6a093c8db8099 (diff) |
Xming: Casts to remove warnings on event pointers
winkeybd.c: In function ‘winSendKeyEvent’:
winkeybd.c:489: warning: passing argument 2 of ‘mieqEnqueue’ from incompatible pointer type
winmouse.c: In function ‘winMouseButtonsSendEvent’:
winmouse.c:247: warning: passing argument 2 of ‘mieqEnqueue’ from incompatible pointer type
winmouse.c: In function ‘winEnqueueMotion’:
winmouse.c:380: warning: passing argument 2 of ‘mieqEnqueue’ from incompatible pointer type
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'hw/xwin/winmouse.c')
-rw-r--r-- | hw/xwin/winmouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xwin/winmouse.c b/hw/xwin/winmouse.c index 5e1f756a0..af499d94b 100644 --- a/hw/xwin/winmouse.c +++ b/hw/xwin/winmouse.c @@ -244,7 +244,7 @@ winMouseButtonsSendEvent (int iEventType, int iButton) POINTER_RELATIVE, 0, 0, NULL); for (i = 0; i < nevents; i++) - mieqEnqueue(g_pwinPointer, events[i].event); + mieqEnqueue(g_pwinPointer, (InternalEvent*)events[i].event); #if CYGDEBUG ErrorF("winMouseButtonsSendEvent: iEventType: %d, iButton: %d, nEvents %d\n", @@ -377,5 +377,5 @@ void winEnqueueMotion(int x, int y) POINTER_ABSOLUTE | POINTER_SCREEN, 0, 2, valuators); for (i = 0; i < nevents; i++) - mieqEnqueue(g_pwinPointer, events[i].event); + mieqEnqueue(g_pwinPointer, (InternalEvent*)events[i].event); } |