From: Ian Romanick Date: Mon, 12 Dec 2011 17:48:29 +0000 (-0800) Subject: glx: Make parameter types for __glXSendError match protocol types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1ffb3335f629ed43bde44cee789dc9cdb35c306;p=mesa.git glx: Make parameter types for __glXSendError match protocol types Signed-off-by: Ian Romanick Reviewed-by: Adam Jackson Reviewed-by: Eric Anholt Cc: Jeremy Huddleston --- diff --git a/src/glx/glx_error.c b/src/glx/glx_error.c index d44a80ca659..0855c35951a 100644 --- a/src/glx/glx_error.c +++ b/src/glx/glx_error.c @@ -35,8 +35,8 @@ #include "glx_error.h" void -__glXSendError(Display * dpy, int errorCode, unsigned long resourceID, - unsigned long minorCode, bool coreX11error) +__glXSendError(Display * dpy, int_fast8_t errorCode, uint_fast32_t resourceID, + uint_fast16_t minorCode, bool coreX11error) { struct glx_display *glx_dpy = __glXInitialize(dpy); struct glx_context *gc = __glXGetCurrentContext(); diff --git a/src/glx/glx_error.h b/src/glx/glx_error.h index 6ba2f854dbf..19be38b4425 100644 --- a/src/glx/glx_error.h +++ b/src/glx/glx_error.h @@ -27,7 +27,9 @@ prior written authorization. */ #include +#include #include -void __glXSendError(Display * dpy, int errorCode, unsigned long resourceID, - unsigned long minorCode, bool coreX11error); +void __glXSendError(Display * dpy, int_fast8_t errorCode, + uint_fast32_t resourceID, uint_fast16_t minorCode, + bool coreX11error);