Skip to content

Commit c6a2e15

Browse files
committed
Fix [-Wstrict-prototypes] in CLI SAPI .c files
1 parent 883602d commit c6a2e15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sapi/cli/php_cli_server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void char_ptr_dtor_p(zval *zv) /* {{{ */
275275
pefree(Z_PTR_P(zv), 1);
276276
} /* }}} */
277277

278-
static char *get_last_error() /* {{{ */
278+
static char *get_last_error(void) /* {{{ */
279279
{
280280
return pestrdup(strerror(errno), 1);
281281
} /* }}} */
@@ -1153,7 +1153,7 @@ static int php_cli_server_content_sender_pull(php_cli_server_content_sender *sen
11531153
} /* }}} */
11541154

11551155
#if HAVE_UNISTD_H
1156-
static int php_cli_is_output_tty() /* {{{ */
1156+
static int php_cli_is_output_tty(void) /* {{{ */
11571157
{
11581158
if (php_cli_output_is_tty == OUTPUT_NOT_CHECKED) {
11591159
php_cli_output_is_tty = isatty(STDOUT_FILENO);

sapi/phpdbg/phpdbg_watch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ void phpdbg_automatic_dequeue_free(phpdbg_watch_element *element) {
717717
phpdbg_free_watch_element_tree(element);
718718
}
719719

720-
void phpdbg_dequeue_elements_for_recreation() {
720+
void phpdbg_dequeue_elements_for_recreation(void) {
721721
phpdbg_watch_element *element;
722722

723723
ZEND_HASH_FOREACH_PTR(&PHPDBG_G(watch_recreation), element) {

0 commit comments

Comments
 (0)