Remove return value from llist apply functions

Unlike the hash apply functions, these do not return int.
This commit is contained in:
Nikita Popov 2020-04-15 10:59:58 +02:00
parent 9043563775
commit d68dfaf05e
6 changed files with 8 additions and 14 deletions

View file

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