summaryrefslogtreecommitdiff
path: root/sapi/cli
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-06-06 20:13:38 +0800
committerNikita Popov <nikita.ppv@gmail.com>2020-06-07 10:36:50 +0200
commit1b85e749c7e892db727806a92f4e215a8538ba9e (patch)
treec6f8b947d544635d6ace6517f4e02cecf31489fa /sapi/cli
parent68fdad82c9a3d1d1fc03975b7b91fdb940c621e0 (diff)
downloadphp-git-1b85e749c7e892db727806a92f4e215a8538ba9e.tar.gz
Fix warning of strict-prototypes
Closes GH-5673.
Diffstat (limited to 'sapi/cli')
-rw-r--r--sapi/cli/cli.h2
-rw-r--r--sapi/cli/php_cli.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cli/cli.h b/sapi/cli/cli.h
index 694de0d9e9..a713b5eccf 100644
--- a/sapi/cli/cli.h
+++ b/sapi/cli/cli.h
@@ -34,6 +34,6 @@ typedef struct {
int (*cli_shell_run)(void);
} cli_shell_callbacks_t;
-extern PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks();
+extern PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks(void);
#endif /* CLI_H */
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index d068952343..f116bc475f 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -118,7 +118,7 @@ static DWORD orig_cp = 0;
#define PHP_MODE_SHOW_INI_CONFIG 13
cli_shell_callbacks_t cli_shell_callbacks = { NULL, NULL, NULL };
-PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks()
+PHP_CLI_API cli_shell_callbacks_t *php_cli_get_shell_callbacks(void)
{
return &cli_shell_callbacks;
}