From 8e553da85f6889fcdacb7a42c30ec675d47db44a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 23 Mar 2006 22:11:29 +0000 Subject: [PATCH] Fixed compiler warning. --- src/video/x11/SDL_x11video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index 51e248be7..ee8c535d8 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -241,13 +241,13 @@ static int xio_errhandler(Display *d) 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 @@ static int xext_errhandler(Display *d, char *ext_name, char *reason) } /* 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 */