From: foobar Date: Wed, 1 Aug 2001 00:31:19 +0000 (+0000) Subject: kill warning and make this build again. X-Git-Tag: PRE_ENGINE2_SPLIT~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ccc2fd9eff3718ad560a2dd6dc0cd313235491c;p=php kill warning and make this build again. --- 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; } diff --git a/main/fopen_wrappers.h b/main/fopen_wrappers.h index 079156be06..ae8931d149 100644 --- a/main/fopen_wrappers.h +++ b/main/fopen_wrappers.h @@ -82,7 +82,7 @@ PHPAPI char *php_strip_url_passwd(char *path); int php_init_fopen_wrappers(TSRMLS_D); int php_shutdown_fopen_wrappers(TSRMLS_D); -PHPAPI int php_register_url_wrapper(char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC); +PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC); PHPAPI int php_unregister_url_wrapper(char *protocol TSRMLS_DC); #endif