[PATCH] include: fix enum EventType declaration.

Peter Hutterer peter.hutterer at who-t.net
Tue Jul 28 20:39:38 PDT 2009


Having EventType after the enum declares a variable. silly me.

Reported-by: Aaron Plattner

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 include/eventstr.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/eventstr.h b/include/eventstr.h
index 3eefc05..e39beb9 100644
--- a/include/eventstr.h
+++ b/include/eventstr.h
@@ -44,7 +44,7 @@
  * Note: Keep KeyPress to Motion aligned with the core events.
  *       Keep ET_Raw* in the same order as KeyPress - Motion
  */
-enum {
+enum EventType {
     ET_KeyPress = 2,
     ET_KeyRelease,
     ET_ButtonPress,
@@ -67,7 +67,7 @@ enum {
     ET_RawButtonRelease,
     ET_RawMotion,
     ET_Internal = 0xFF /* First byte */
-} EventType;
+};
 
 #define CHECKEVENT(ev) if (ev && ((InternalEvent*)(ev))->any.header != 0xFF) \
                           FatalError("Wrong event type %d.\n", \
-- 
1.6.3.rc1.2.g0164.dirty




More information about the xorg-devel mailing list