summaryrefslogtreecommitdiff
path: root/src/ChkWinEv.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
committerEgbert Eich <eich@freedesktop.org>2004-04-23 18:42:09 +0000
commitc6349f43193b74a3c09945f3093a871b0157ba47 (patch)
treeaea173c19da6fa57e24eb4633ff815feb7ae3fa0 /src/ChkWinEv.c
parentc3c4ddc682950a01b80825021f3e2503ab01ea7f (diff)
downloadxorg-lib-libX11-c6349f43193b74a3c09945f3093a871b0157ba47.tar.gz
Merging XORG-CURRENT into trunk
Diffstat (limited to 'src/ChkWinEv.c')
-rw-r--r--src/ChkWinEv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ChkWinEv.c b/src/ChkWinEv.c
index 27d4c05e..2fd386d2 100644
--- a/src/ChkWinEv.c
+++ b/src/ChkWinEv.c
@@ -24,16 +24,12 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
+/* $XFree86: xc/lib/X11/ChkWinEv.c,v 3.5 2001/10/28 03:32:30 tsi Exp $ */
#define NEED_EVENTS
#include "Xlibint.h"
-#ifdef __STDC__
-#define Const const
-#else
-#define Const /**/
-#endif
-extern long Const _Xevent_to_mask[];
+extern long const _Xevent_to_mask[];
#define AllPointers (PointerMotionMask|PointerMotionHintMask|ButtonMotionMask)
#define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\
Button4MotionMask|Button5MotionMask)
@@ -51,7 +47,7 @@ Bool XCheckWindowEvent (dpy, w, mask, event)
register XEvent *event; /* XEvent to be filled in. */
{
register _XQEvent *prev, *qelt;
- unsigned long qe_serial;
+ unsigned long qe_serial = 0;
int n; /* time through count */
LockDisplay(dpy);