diff src/video/x11/SDL_x11video.c @ 1609:c3b5d17277d4

Fixed compiler warning.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 23 Mar 2006 22:11:29 +0000
parents 3ba88cb7eb1b
children 5cf11b00b900
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c	Thu Mar 23 21:55:13 2006 +0000
+++ b/src/video/x11/SDL_x11video.c	Thu Mar 23 22:11:29 2006 +0000
@@ -241,13 +241,13 @@
 	return(XIO_handler(d));
 }
 
-static int (*Xext_handler)(Display *,char *,char *) = NULL;
-static int xext_errhandler(Display *d, char *ext_name, char *reason)
+static int (*Xext_handler)(Display *, _Xconst char *, _Xconst char *) = NULL;
+static int xext_errhandler(Display *d, _Xconst char *ext, _Xconst char *reason)
 {
 #ifdef XFREE86_DEBUG
 	printf("Xext error inside SDL (may be harmless):\n");
 	printf("  Extension \"%s\" %s on display \"%s\".\n",
-	       ext_name, reason, XDisplayString(d));
+	       ext, reason, XDisplayString(d));
 #endif
 
 	if (SDL_strcmp(reason, "missing") == 0) {
@@ -260,7 +260,7 @@
 	}
 
 	/* Everything else goes to the default handler... */
-	return Xext_handler(d, ext_name, reason);
+	return Xext_handler(d, ext, reason);
 }
 
 /* Find out what class name we should use */