mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Get rid of second declaration of compare_func_t. Either put in a common
header file or prefix it with i.e. zend_llist_
This commit is contained in:
parent
f1dac01f11
commit
d7e34cf6ea
2 changed files with 1 additions and 2 deletions
|
@ -171,7 +171,7 @@ ZEND_API void zend_llist_sort(zend_llist *l, llist_compare_func_t comp_func)
|
|||
*ptr++ = element;
|
||||
}
|
||||
|
||||
qsort(elements, list_size, sizeof(zend_llist_element *), (compare_func_t) comp_func);
|
||||
qsort(elements, list_size, sizeof(zend_llist_element *), (int (*)(const void *, const void *)) comp_func);
|
||||
|
||||
l->head = elements[0];
|
||||
elements[0]->prev = NULL;
|
||||
|
|
|
@ -39,7 +39,6 @@ typedef struct _zend_llist {
|
|||
} zend_llist;
|
||||
|
||||
typedef int (*llist_compare_func_t) (const zend_llist_element *, const zend_llist_element *);
|
||||
typedef int (*compare_func_t)(const void *, const void *);
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
ZEND_API void zend_llist_init(zend_llist *l, size_t size, void (*dtor)(void *data), unsigned char persistent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue