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:
Sascha Schumann 2000-02-18 20:04:32 +00:00
parent f1dac01f11
commit d7e34cf6ea
2 changed files with 1 additions and 2 deletions

View file

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

View file

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