summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-08-01 00:31:19 +0000
committerfoobar <sniper@php.net>2001-08-01 00:31:19 +0000
commit0ccc2fd9eff3718ad560a2dd6dc0cd313235491c (patch)
tree214ac41fd79ef375a5cc0a2ced32ac86bde5f6e4 /main/fopen_wrappers.c
parentbad630553b9e1dd5bdc8b08563c95c8219e12a6f (diff)
downloadphp-git-0ccc2fd9eff3718ad560a2dd6dc0cd313235491c.tar.gz
kill warning and make this build again.
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index fd43cf5ed0..9f642aaf9f 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -90,7 +90,7 @@ static HashTable fopen_url_wrappers_hash;
PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC)
{
if(PG(allow_url_fopen)) {
- return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
+ return zend_hash_add(&fopen_url_wrappers_hash, (char *) protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
} else {
return FAILURE;
}