1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

main: Voidify php_startup_ticks() (#17479)

As it always returns SUCCESS and we ignored the return value anyway
This commit is contained in:
Gina Peter Banyard
2025-01-15 15:55:42 +00:00
committed by GitHub
parent b7169a2248
commit effd3f6212
2 changed files with 2 additions and 3 deletions

View File

@@ -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)

View File

@@ -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);