Skip to content

Commit effd3f6

Browse files
authored
main: Voidify php_startup_ticks() (php#17479)
As it always returns SUCCESS and we ignored the return value anyway
1 parent b7169a2 commit effd3f6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

main/php_ticks.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ struct st_tick_function
2323
void *arg;
2424
};
2525

26-
int php_startup_ticks(void)
26+
void php_startup_ticks(void)
2727
{
2828
zend_llist_init(&PG(tick_functions), sizeof(struct st_tick_function), NULL, 1);
29-
return SUCCESS;
3029
}
3130

3231
void php_deactivate_ticks(void)

main/php_ticks.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef PHP_TICKS_H
1818
#define PHP_TICKS_H
1919

20-
int php_startup_ticks(void);
20+
void php_startup_ticks(void);
2121
void php_deactivate_ticks(void);
2222
void php_shutdown_ticks(php_core_globals *core_globals);
2323
void php_run_ticks(int count);

0 commit comments

Comments
 (0)