src/SDL_error.c
changeset 4867 ba7492f9e2b8
parent 4627 3b5f4b3a69e1
child 4979 be4ba07d9867
equal deleted inserted replaced
4866:f42e8db53f78 4867:ba7492f9e2b8
   196     }
   196     }
   197     return (errstr);
   197     return (errstr);
   198 }
   198 }
   199 
   199 
   200 /* Available for backwards compatibility */
   200 /* Available for backwards compatibility */
   201 char *
   201 const char *
   202 SDL_GetError(void)
   202 SDL_GetError(void)
   203 {
   203 {
   204     static char errmsg[SDL_ERRBUFIZE];
   204     static char errmsg[SDL_ERRBUFIZE];
   205 
   205 
   206     return ((char *) SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE));
   206     return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE);
   207 }
   207 }
   208 
   208 
   209 void
   209 void
   210 SDL_ClearError(void)
   210 SDL_ClearError(void)
   211 {
   211 {