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

Jeremy Huddleston jeremyhu at apple.com
Tue May 24 16:57:09 PDT 2011


Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On May 24, 2011, at 13:03, Aaron Plattner wrote:

> 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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel



More information about the xorg-devel mailing list