Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Mar 2011 13:33:53 -0700
changeset 5501 f48c1e0ca9ae
parent 5499 2b8e6d1e3817
child 5502 ed5f117c949d
Fixed compiler warning
src/events/SDL_quit.c
--- a/src/events/SDL_quit.c	Sun Mar 13 22:38:41 2011 -0500
+++ b/src/events/SDL_quit.c	Mon Mar 21 13:33:53 2011 -0700
@@ -50,12 +50,12 @@
 #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);
     }