Skip to content

Commit 1fe7dc3

Browse files
authored
Fix -Wstrict-prototypes warnings in fuzzer SAPI (#11277)
1 parent afcf97b commit 1fe7dc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sapi/fuzzer/fuzzer-sapi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void send_header(sapi_header_struct *sapi_header, void *server_context)
8080
{
8181
}
8282

83-
static char* read_cookies()
83+
static char* read_cookies(void)
8484
{
8585
/* TODO: fuzz these! */
8686
return NULL;
@@ -172,7 +172,7 @@ int fuzzer_init_php(const char *extra_ini)
172172
return SUCCESS;
173173
}
174174

175-
int fuzzer_request_startup()
175+
int fuzzer_request_startup(void)
176176
{
177177
if (php_request_startup() == FAILURE) {
178178
php_module_shutdown();
@@ -188,7 +188,7 @@ int fuzzer_request_startup()
188188
return SUCCESS;
189189
}
190190

191-
void fuzzer_request_shutdown()
191+
void fuzzer_request_shutdown(void)
192192
{
193193
zend_try {
194194
/* Destroy thrown exceptions. This does not happen as part of request shutdown. */
@@ -207,7 +207,7 @@ void fuzzer_request_shutdown()
207207
}
208208

209209
/* Set up a dummy stack frame so that exceptions may be thrown. */
210-
void fuzzer_setup_dummy_frame()
210+
void fuzzer_setup_dummy_frame(void)
211211
{
212212
static zend_execute_data execute_data;
213213
static zend_function func;

0 commit comments

Comments
 (0)