Skip to content

Commit ba83d5d

Browse files
authored
sapi/litespeed and ext/standard: Fix few build warnings. (#18265)
1 parent 2368767 commit ba83d5d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ext/standard/exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ PHPAPI int php_exec(int type, const char *cmd, zval *array, zval *return_value)
118118
php_stream *stream;
119119
size_t buflen, bufl = 0;
120120
#if PHP_SIGCHILD
121-
void (*sig_handler)() = signal(SIGCHLD, SIG_DFL);
121+
void (*sig_handler)(int) = signal(SIGCHLD, SIG_DFL);
122122
#endif
123123

124124
#ifdef PHP_WIN32

ext/standard/mail.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ PHPAPI bool php_mail(const char *to, const char *subject, const char *message, c
445445
const char *hdr = headers;
446446
char *ahdr = NULL;
447447
#if PHP_SIGCHILD
448-
void (*sig_handler)() = NULL;
448+
void (*sig_handler)(int) = NULL;
449449
#endif
450450

451451
#define MAIL_RET(val) \

sapi/litespeed/lsapi_main.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1678,11 +1678,11 @@ PHP_FUNCTION(litespeed_response_headers)
16781678
char headerBuf[SAPI_LSAPI_MAX_HEADER_LENGTH];
16791679

16801680
if (zend_parse_parameters_none() == FAILURE) {
1681-
RETURN_THROWS();
1682-
}
1681+
RETURN_THROWS();
1682+
}
16831683

1684-
if (!&SG(sapi_headers).headers) {
1685-
RETURN_FALSE;
1684+
if (!zend_llist_count(&SG(sapi_headers).headers)) {
1685+
RETURN_FALSE;
16861686
}
16871687
array_init(return_value);
16881688

sapi/litespeed/lscriu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static int LSCRIU_Init_Env_Parameters(void)
658658
}
659659

660660

661-
void LSCRIU_inc_req_processed()
661+
void LSCRIU_inc_req_processed(void)
662662
{
663663
if (!LSCRIU_Get_Global_Counter_Type()) {
664664
++s_requests_count;

0 commit comments

Comments
 (0)