Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Mar 2011 13:33:53 -0700
changeset 5501f48c1e0ca9ae
parent 5499 2b8e6d1e3817
child 5502 ed5f117c949d
Fixed compiler warning
src/events/SDL_quit.c
     1.1 --- a/src/events/SDL_quit.c	Sun Mar 13 22:38:41 2011 -0500
     1.2 +++ b/src/events/SDL_quit.c	Mon Mar 21 13:33:53 2011 -0700
     1.3 @@ -50,12 +50,12 @@
     1.4  #ifdef HAVE_SIGACTION
     1.5      struct sigaction action;
     1.6      sigaction(SIGINT, NULL, &action);
     1.7 -    if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
     1.8 +    if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
     1.9          action.sa_handler = SDL_HandleSIG;
    1.10          sigaction(SIGINT, &action, NULL);
    1.11      }
    1.12      sigaction(SIGTERM, NULL, &action);
    1.13 -    if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
    1.14 +    if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
    1.15          action.sa_handler = SDL_HandleSIG;
    1.16          sigaction(SIGTERM, &action, NULL);
    1.17      }