From effd3f621221a6d9901e9957d4bd5e0321f107c9 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Wed, 15 Jan 2025 15:55:42 +0000 Subject: [PATCH] main: Voidify php_startup_ticks() (#17479) As it always returns SUCCESS and we ignored the return value anyway --- main/php_ticks.c | 3 +-- main/php_ticks.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/main/php_ticks.c b/main/php_ticks.c index 70201ddecd08d..4c1e5113e9650 100644 --- a/main/php_ticks.c +++ b/main/php_ticks.c @@ -23,10 +23,9 @@ struct st_tick_function void *arg; }; -int php_startup_ticks(void) +void php_startup_ticks(void) { zend_llist_init(&PG(tick_functions), sizeof(struct st_tick_function), NULL, 1); - return SUCCESS; } void php_deactivate_ticks(void) diff --git a/main/php_ticks.h b/main/php_ticks.h index 270ea5348fd2a..998f4364e5e92 100644 --- a/main/php_ticks.h +++ b/main/php_ticks.h @@ -17,7 +17,7 @@ #ifndef PHP_TICKS_H #define PHP_TICKS_H -int php_startup_ticks(void); +void php_startup_ticks(void); void php_deactivate_ticks(void); void php_shutdown_ticks(php_core_globals *core_globals); void php_run_ticks(int count);