* moved defines into php_http_std_defs.h
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index b46ba9ef4f2f3deb98756e893fa113f4217a23b6..fdeb84f35973d91b24d362ac4302e617b980232f 100644 (file)
--- a/http.c
+++ b/http.c
@@ -35,6 +35,7 @@
 #include "php_http.h"
 #include "php_http_api.h"
 #include "php_http_curl_api.h"
+#include "php_http_std_defs.h"
 
 #ifdef ZEND_ENGINE_2
 #      include "ext/standard/php_http.h"
@@ -368,9 +369,10 @@ zend_module_entry http_module_entry = {
 };
 /* }}} */
 
-static void free_to_free(void **s)
+
+static void free_to_free(void *s)
 {
-       efree(*s);
+       efree(*(char **)s);
 }
 
 /* {{{ php_http_init_globals(zend_http_globals *) */