From 2d65370f4558900aac656cf64817507fa8c415fa Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 21 Mar 2011 13:33:29 -0700 Subject: [PATCH] Fixed compiler warning --HG-- branch : SDL-1.2 --- 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 65d6c0ce8..099b97112 100644 --- a/src/events/SDL_quit.c +++ b/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); }