@@ -537,9 +537,9 @@ static void log_message (const char *fmt, ...)
537
537
#define DEBUG_MESSAGE (fmt , ...)
538
538
#endif
539
539
540
- static int lsapi_activate_user_ini ();
540
+ static int lsapi_activate_user_ini (void );
541
541
542
- static int sapi_lsapi_activate ()
542
+ static int sapi_lsapi_activate (void )
543
543
{
544
544
char * path , * server_name ;
545
545
size_t path_len , server_name_len ;
@@ -677,10 +677,9 @@ static int do_clean_shutdown = 1;
677
677
static int clean_onexit = 1 ;
678
678
679
679
680
- static void lsapi_clean_shutdown ()
680
+ static void lsapi_clean_shutdown (void )
681
681
{
682
682
struct sigaction act ;
683
- int sa_rc ;
684
683
struct itimerval tmv ;
685
684
#if PHP_MAJOR_VERSION >= 7
686
685
zend_string * key ;
@@ -689,15 +688,14 @@ static void lsapi_clean_shutdown()
689
688
sigemptyset (& act .sa_mask );
690
689
act .sa_flags = 0 ;
691
690
act .sa_handler = lsapi_sigsegv ;
692
- sa_rc = sigaction (SIGINT , & act , NULL );
693
- sa_rc = sigaction (SIGQUIT , & act , NULL );
694
- sa_rc = sigaction (SIGILL , & act , NULL );
695
- sa_rc = sigaction (SIGABRT , & act , NULL );
696
- sa_rc = sigaction (SIGBUS , & act , NULL );
697
- sa_rc = sigaction (SIGSEGV , & act , NULL );
698
- sa_rc = sigaction (SIGTERM , & act , NULL );
699
-
700
- sa_rc = sigaction (SIGPROF , & act , NULL );
691
+ (void )sigaction (SIGINT , & act , NULL );
692
+ (void )sigaction (SIGQUIT , & act , NULL );
693
+ (void )sigaction (SIGILL , & act , NULL );
694
+ (void )sigaction (SIGABRT , & act , NULL );
695
+ (void )sigaction (SIGBUS , & act , NULL );
696
+ (void )sigaction (SIGSEGV , & act , NULL );
697
+ (void )sigaction (SIGTERM , & act , NULL );
698
+ (void )sigaction (SIGPROF , & act , NULL );
701
699
memset (& tmv , 0 , sizeof (struct itimerval ));
702
700
tmv .it_value .tv_sec = 0 ;
703
701
tmv .it_value .tv_usec = 100000 ;
@@ -738,11 +736,9 @@ static void lsapi_atexit(void)
738
736
}
739
737
}
740
738
741
-
742
739
static int lsapi_module_main (int show_source )
743
740
{
744
741
struct sigaction act ;
745
- int sa_rc ;
746
742
if (php_request_startup () == FAILURE ) {
747
743
return -1 ;
748
744
}
@@ -751,13 +747,13 @@ static int lsapi_module_main(int show_source)
751
747
sigemptyset (& act .sa_mask );
752
748
act .sa_flags = SA_NODEFER ;
753
749
act .sa_handler = lsapi_sigterm ;
754
- sa_rc = sigaction ( SIGINT , & act , NULL );
755
- sa_rc = sigaction ( SIGQUIT , & act , NULL );
756
- sa_rc = sigaction ( SIGILL , & act , NULL );
757
- sa_rc = sigaction ( SIGABRT , & act , NULL );
758
- sa_rc = sigaction ( SIGBUS , & act , NULL );
759
- sa_rc = sigaction ( SIGSEGV , & act , NULL );
760
- sa_rc = sigaction ( SIGTERM , & act , NULL );
750
+ ( void ) sigaction ( SIGINT , & act , NULL );
751
+ ( void ) sigaction ( SIGQUIT , & act , NULL );
752
+ ( void ) sigaction ( SIGILL , & act , NULL );
753
+ ( void ) sigaction ( SIGABRT , & act , NULL );
754
+ ( void ) sigaction ( SIGBUS , & act , NULL );
755
+ ( void ) sigaction ( SIGSEGV , & act , NULL );
756
+ ( void ) sigaction ( SIGTERM , & act , NULL );
761
757
762
758
clean_onexit = 0 ;
763
759
}
@@ -834,7 +830,7 @@ static void user_config_cache_entry_dtor(zval *el)
834
830
free (entry );
835
831
}
836
832
837
- static void user_config_cache_init ()
833
+ static void user_config_cache_init (void )
838
834
{
839
835
zend_hash_init (& user_config_cache , 0 , NULL , user_config_cache_entry_dtor , 1 );
840
836
}
@@ -1101,7 +1097,7 @@ static int lsapi_activate_user_ini( void )
1101
1097
}
1102
1098
1103
1099
1104
- static void override_ini ()
1100
+ static void override_ini (void )
1105
1101
{
1106
1102
1107
1103
LSAPI_ForeachSpecialEnv ( alter_ini , NULL );
0 commit comments