mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove return value from llist apply functions
Unlike the hash apply functions, these do not return int.
This commit is contained in:
parent
9043563775
commit
d68dfaf05e
6 changed files with 8 additions and 14 deletions
|
@ -258,10 +258,9 @@ static void print_modules(void)
|
|||
zend_hash_destroy(&sorted_registry);
|
||||
}
|
||||
|
||||
static int print_extension_info(zend_extension *ext, void *arg)
|
||||
static void print_extension_info(zend_extension *ext)
|
||||
{
|
||||
php_printf("%s\n", ext->name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int extension_name_cmp(const zend_llist_element **f, const zend_llist_element **s)
|
||||
|
@ -278,7 +277,7 @@ static void print_extensions(void)
|
|||
zend_llist_copy(&sorted_exts, &zend_extensions);
|
||||
sorted_exts.dtor = NULL;
|
||||
zend_llist_sort(&sorted_exts, extension_name_cmp);
|
||||
zend_llist_apply_with_argument(&sorted_exts, (llist_apply_with_arg_func_t) print_extension_info, NULL);
|
||||
zend_llist_apply(&sorted_exts, (llist_apply_func_t) print_extension_info);
|
||||
zend_llist_destroy(&sorted_exts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue