Fixed compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 23 Mar 2006 22:11:29 +0000
changeset 1609c3b5d17277d4
parent 1608 d951a5afaf07
child 1610 a1ee5944412b
Fixed compiler warning.
src/video/x11/SDL_x11video.c
     1.1 --- a/src/video/x11/SDL_x11video.c	Thu Mar 23 21:55:13 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.c	Thu Mar 23 22:11:29 2006 +0000
     1.3 @@ -241,13 +241,13 @@
     1.4  	return(XIO_handler(d));
     1.5  }
     1.6  
     1.7 -static int (*Xext_handler)(Display *,char *,char *) = NULL;
     1.8 -static int xext_errhandler(Display *d, char *ext_name, char *reason)
     1.9 +static int (*Xext_handler)(Display *, _Xconst char *, _Xconst char *) = NULL;
    1.10 +static int xext_errhandler(Display *d, _Xconst char *ext, _Xconst char *reason)
    1.11  {
    1.12  #ifdef XFREE86_DEBUG
    1.13  	printf("Xext error inside SDL (may be harmless):\n");
    1.14  	printf("  Extension \"%s\" %s on display \"%s\".\n",
    1.15 -	       ext_name, reason, XDisplayString(d));
    1.16 +	       ext, reason, XDisplayString(d));
    1.17  #endif
    1.18  
    1.19  	if (SDL_strcmp(reason, "missing") == 0) {
    1.20 @@ -260,7 +260,7 @@
    1.21  	}
    1.22  
    1.23  	/* Everything else goes to the default handler... */
    1.24 -	return Xext_handler(d, ext_name, reason);
    1.25 +	return Xext_handler(d, ext, reason);
    1.26  }
    1.27  
    1.28  /* Find out what class name we should use */