diff options
author | foobar <sniper@php.net> | 2001-08-01 00:31:19 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-08-01 00:31:19 +0000 |
commit | 0ccc2fd9eff3718ad560a2dd6dc0cd313235491c (patch) | |
tree | 214ac41fd79ef375a5cc0a2ced32ac86bde5f6e4 | |
parent | bad630553b9e1dd5bdc8b08563c95c8219e12a6f (diff) | |
download | php-git-0ccc2fd9eff3718ad560a2dd6dc0cd313235491c.tar.gz |
kill warning and make this build again.
-rw-r--r-- | main/fopen_wrappers.c | 2 | ||||
-rw-r--r-- | main/fopen_wrappers.h | 2 |
2 files changed, 2 insertions, 2 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; } 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 |