[PATCH XTS] xts5: BadDevice takes an int*, not an XID*

Aaron Plattner aplattner at nvidia.com
Tue May 24 13:03:20 PDT 2011


startup.c: In function ‘init_xinput’:
startup.c:505: error: passing argument 2 of ‘_xibaddevice’ from incompatible pointer type
/usr/include/X11/extensions/XInput.h:162: note: expected ‘int *’ but argument is of type ‘XID *’

Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
 xts5/src/lib/startup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xts5/src/lib/startup.c b/xts5/src/lib/startup.c
index 8f3bcb1..9d4d9bc 100644
--- a/xts5/src/lib/startup.c
+++ b/xts5/src/lib/startup.c
@@ -153,7 +153,7 @@ extern	int 	NXI_event;
 int XInputMajorOpcode;
 int XInputFirstError;
 int XInputFirstEvent;
-XID baddevice;
+int baddevice;
 
 Display	*Dsp;
 Window	Win;
-- 
1.7.1



More information about the xorg-devel mailing list