Skip to content

Fix -Wstrict-prototypes warnings in fuzzer SAPI #11277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sapi/fuzzer/fuzzer-sapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static void send_header(sapi_header_struct *sapi_header, void *server_context)
{
}

static char* read_cookies()
static char* read_cookies(void)
{
/* TODO: fuzz these! */
return NULL;
Expand Down Expand Up @@ -172,7 +172,7 @@ int fuzzer_init_php(const char *extra_ini)
return SUCCESS;
}

int fuzzer_request_startup()
int fuzzer_request_startup(void)
{
if (php_request_startup() == FAILURE) {
php_module_shutdown();
Expand All @@ -188,7 +188,7 @@ int fuzzer_request_startup()
return SUCCESS;
}

void fuzzer_request_shutdown()
void fuzzer_request_shutdown(void)
{
zend_try {
/* Destroy thrown exceptions. This does not happen as part of request shutdown. */
Expand All @@ -207,7 +207,7 @@ void fuzzer_request_shutdown()
}

/* Set up a dummy stack frame so that exceptions may be thrown. */
void fuzzer_setup_dummy_frame()
void fuzzer_setup_dummy_frame(void)
{
static zend_execute_data execute_data;
static zend_function func;
Expand Down