Skip to content
Permalink
Browse files

Fixed compiler warning

  • Loading branch information
slouken committed Mar 21, 2011
1 parent 5636f3a commit 518f1d076b08d5eb069749bca7e962e2fcc90b89
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/events/SDL_quit.c
@@ -48,12 +48,12 @@ int SDL_QuitInit(void)
#ifdef HAVE_SIGACTION
struct sigaction action;
sigaction(SIGINT, NULL, &action);
if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
action.sa_handler = SDL_HandleSIG;
sigaction(SIGINT, &action, NULL);
}
sigaction(SIGTERM, NULL, &action);
if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
action.sa_handler = SDL_HandleSIG;
sigaction(SIGTERM, &action, NULL);
}

0 comments on commit 518f1d0

Please sign in to comment.