src/SDL_error.c
changeset 4867 ba7492f9e2b8
parent 4627 3b5f4b3a69e1
child 4979 be4ba07d9867
     1.1 --- a/src/SDL_error.c	Sat Aug 28 22:56:52 2010 -0700
     1.2 +++ b/src/SDL_error.c	Sun Aug 29 12:00:09 2010 -0700
     1.3 @@ -198,12 +198,12 @@
     1.4  }
     1.5  
     1.6  /* Available for backwards compatibility */
     1.7 -char *
     1.8 +const char *
     1.9  SDL_GetError(void)
    1.10  {
    1.11      static char errmsg[SDL_ERRBUFIZE];
    1.12  
    1.13 -    return ((char *) SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE));
    1.14 +    return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE);
    1.15  }
    1.16  
    1.17  void