Commit 6373d895 authored by Sam Lantinga's avatar Sam Lantinga

Fixed compiler warning

parent 791cca44
...@@ -50,12 +50,12 @@ SDL_QuitInit(void) ...@@ -50,12 +50,12 @@ SDL_QuitInit(void)
#ifdef HAVE_SIGACTION #ifdef HAVE_SIGACTION
struct sigaction action; struct sigaction action;
sigaction(SIGINT, NULL, &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; action.sa_handler = SDL_HandleSIG;
sigaction(SIGINT, &action, NULL); sigaction(SIGINT, &action, NULL);
} }
sigaction(SIGTERM, NULL, &action); 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; action.sa_handler = SDL_HandleSIG;
sigaction(SIGTERM, &action, NULL); sigaction(SIGTERM, &action, NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment