Fixed compiler warning SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Mar 2011 13:33:29 -0700
branchSDL-1.2
changeset 550027348c0ae529
parent 5492 b214b7ce9b00
child 5549 b3577cec429d
Fixed compiler warning
src/events/SDL_quit.c
     1.1 --- a/src/events/SDL_quit.c	Tue Mar 15 21:36:36 2011 -0700
     1.2 +++ b/src/events/SDL_quit.c	Mon Mar 21 13:33:29 2011 -0700
     1.3 @@ -48,12 +48,12 @@
     1.4  #ifdef HAVE_SIGACTION
     1.5  	struct sigaction action;
     1.6  	sigaction(SIGINT, NULL, &action);
     1.7 -	if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
     1.8 +	if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
     1.9  		action.sa_handler = SDL_HandleSIG;
    1.10  		sigaction(SIGINT, &action, NULL);
    1.11  	}
    1.12  	sigaction(SIGTERM, NULL, &action);
    1.13 -	if ( action.sa_handler == SIG_DFL && action.sa_sigaction == SIG_DFL ) {
    1.14 +	if ( action.sa_handler == SIG_DFL && action.sa_sigaction == (void*)SIG_DFL ) {
    1.15  		action.sa_handler = SDL_HandleSIG;
    1.16  		sigaction(SIGTERM, &action, NULL);
    1.17  	}