From a20e7b6842d95de535da4448bd4302dedf23d25d Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sun, 12 Feb 2012 10:57:29 +0100 Subject: Fix some compiler warnings --- post_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post_handler.c') diff --git a/post_handler.c b/post_handler.c index 96f4b4a..a36efb4 100644 --- a/post_handler.c +++ b/post_handler.c @@ -148,10 +148,10 @@ void suhosin_hook_post_handlers(TSRMLS_D) /* we need to tell suhosin patch that there is a new valid destructor */ /* therefore we have create HashTable that has this destructor */ - zend_hash_init(&tempht, 0, NULL, suhosin_post_handler_modification, 0); + zend_hash_init(&tempht, 0, NULL, (dtor_func_t)suhosin_post_handler_modification, 0); zend_hash_destroy(&tempht); /* And now we can overwrite the destructor for post entries */ - SG(known_post_content_types).pDestructor = suhosin_post_handler_modification; + SG(known_post_content_types).pDestructor = (dtor_func_t)suhosin_post_handler_modification; /* we have to stop mbstring from replacing our post handler */ if (zend_hash_find(EG(ini_directives), "mbstring.encoding_translation", sizeof("mbstring.encoding_translation"), (void **) &ini_entry) == FAILURE) { -- cgit v1.3