From 026c7ed646a384e2bddf0edc662cb52c98e1fd36 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 21 Mar 2011 13:33:53 -0700 Subject: [PATCH] Fixed compiler warning --- src/events/SDL_quit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/SDL_quit.c b/src/events/SDL_quit.c index 2108693d5..33ff1b716 100644 --- a/src/events/SDL_quit.c +++ b/src/events/SDL_quit.c @@ -50,12 +50,12 @@ 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); }