From 33ef3d64dac366733f2af40d5bce2bac4e5bca1e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 4 Mar 2020 12:35:49 +0100 Subject: Use separate typedef for bucket comparison function Avoid performing the same casting dance inside each sort compare function. --- Zend/zend_ini.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Zend/zend_ini.c') diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index b33161cc74..a2344653bc 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -171,14 +171,8 @@ ZEND_API int zend_copy_ini_directives(void) /* {{{ */ /* }}} */ #endif -static int ini_key_compare(const void *a, const void *b) /* {{{ */ +static int ini_key_compare(Bucket *f, Bucket *s) /* {{{ */ { - const Bucket *f; - const Bucket *s; - - f = (const Bucket *) a; - s = (const Bucket *) b; - if (!f->key && !s->key) { /* both numeric */ if (f->h > s->h) { return -1; -- cgit v1.2.1