Fixed compiler warning SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Mar 2011 13:33:29 -0700
branchSDL-1.2
changeset 5500 27348c0ae529
parent 5492 b214b7ce9b00
child 5549 b3577cec429d
Fixed compiler warning
src/events/SDL_quit.c
--- a/src/events/SDL_quit.c	Tue Mar 15 21:36:36 2011 -0700
+++ b/src/events/SDL_quit.c	Mon Mar 21 13:33:29 2011 -0700
@@ -48,12 +48,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);
 	}