glx: Make parameter types for __glXSendError match protocol types
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Dec 2011 17:48:29 +0000 (09:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Dec 2011 22:55:31 +0000 (14:55 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: Jeremy Huddleston <jeremyhu@apple.com>
src/glx/glx_error.c
src/glx/glx_error.h

index d44a80ca6592ae17475c4ace69c50831f95d4b0b..0855c35951a4e00923416f789c8b70f270fac913 100644 (file)
@@ -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();
index 6ba2f854dbfe79bb2b84837c39c1104d810863f6..19be38b44253b68ecff93b6f0c8e1c779e023bb4 100644 (file)
@@ -27,7 +27,9 @@
  prior written authorization.
 */
 #include <stdbool.h>
+#include <stdint.h>
 #include <X11/Xlib.h>
 
-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);