diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-25 19:56:51 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-25 19:56:51 +0800 |
commit | 0175d994c0f22a22c20d6b6ae04cd92355277d91 (patch) | |
tree | 2cb51949c84f3cf69ce1a3410c3bd34f6da97806 /Zend/zend_list.c | |
parent | c2082ece52bcb5343ae0feb460807596cd79d691 (diff) | |
download | php-git-0175d994c0f22a22c20d6b6ae04cd92355277d91.tar.gz |
Fixed apply_func_arg_t, and it's better not using cast (compiler friendly)
Diffstat (limited to 'Zend/zend_list.c')
-rw-r--r-- | Zend/zend_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_list.c b/Zend/zend_list.c index 41565408ba..f496dd271a 100644 --- a/Zend/zend_list.c +++ b/Zend/zend_list.c @@ -242,7 +242,7 @@ static int zend_clean_module_rsrc_dtors_cb(zval *zv, int *module_number TSRMLS_D { zend_rsrc_list_dtors_entry *ld = Z_PTR_P(zv); if (ld->module_number == *module_number) { - zend_hash_apply_with_argument(&EG(persistent_list), (apply_func_arg_t) clean_module_resource, (void *) &(ld->resource_id) TSRMLS_CC); + zend_hash_apply_with_argument(&EG(persistent_list), clean_module_resource, (void *) &(ld->resource_id) TSRMLS_CC); return 1; } else { return 0; @@ -252,7 +252,7 @@ static int zend_clean_module_rsrc_dtors_cb(zval *zv, int *module_number TSRMLS_D void zend_clean_module_rsrc_dtors(int module_number TSRMLS_DC) { - zend_hash_apply_with_argument(&list_destructors, (apply_func_arg_t) zend_clean_module_rsrc_dtors_cb, (void *) &module_number TSRMLS_CC); + zend_hash_apply_with_argument(&list_destructors, zend_clean_module_rsrc_dtors_cb, (void *) &module_number TSRMLS_CC); } |