Mesa (master): glx: Make parameter types for __glXSendError match protocol types
Ian Romanick
idr at kemper.freedesktop.org
Mon Dec 19 22:56:29 UTC 2011
Module: Mesa
Branch: master
Commit: b1ffb3335f629ed43bde44cee789dc9cdb35c306
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b1ffb3335f629ed43bde44cee789dc9cdb35c306
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Dec 12 09:48:29 2011 -0800
glx: Make parameter types for __glXSendError match protocol types
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Cc: Jeremy Huddleston <jeremyhu at apple.com>
---
src/glx/glx_error.c | 4 ++--
src/glx/glx_error.h | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/glx/glx_error.c b/src/glx/glx_error.c
index d44a80c..0855c35 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 6ba2f85..19be38b 100644
--- a/src/glx/glx_error.h
+++ b/src/glx/glx_error.h
@@ -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);
More information about the mesa-commit
mailing list