Mark various functions with void arguments.

This fixes a bunch of [-Wstrict-prototypes] warning,
because in C func() and func(void) have different semantics.
This commit is contained in:
George Peter Banyard 2021-05-12 14:55:23 +01:00
parent 320d6050e7
commit c40231afbf
No known key found for this signature in database
GPG key ID: D49A095D7329F6DC
73 changed files with 163 additions and 163 deletions

View file

@ -275,7 +275,7 @@ static void char_ptr_dtor_p(zval *zv) /* {{{ */
pefree(Z_PTR_P(zv), 1);
} /* }}} */
static char *get_last_error() /* {{{ */
static char *get_last_error(void) /* {{{ */
{
return pestrdup(strerror(errno), 1);
} /* }}} */
@ -1102,7 +1102,7 @@ static int php_cli_server_content_sender_pull(php_cli_server_content_sender *sen
} /* }}} */
#if HAVE_UNISTD_H
static int php_cli_is_output_tty() /* {{{ */
static int php_cli_is_output_tty(void) /* {{{ */
{
if (php_cli_output_is_tty == OUTPUT_NOT_CHECKED) {
php_cli_output_is_tty = isatty(STDOUT_FILENO);