Fixed compiler warning
--HG-- branch : SDL-1.2
This commit is contained in:
parent
4a4b527593
commit
2d65370f45
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue