Skip to content

Commit

Permalink
Fixed compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 23, 2006
1 parent c93b9bb commit 8e553da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -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) {
Expand All @@ -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 */
Expand Down

0 comments on commit 8e553da

Please sign in to comment.