cvs: php4 /main fopen_wrappers.c fopen_wrappers.h
| From: | Jani Taskinen | Date: | Wed, 01 Aug 2001 00:31:19 +0000 |
| Subject: | cvs: php4 /main fopen_wrappers.c fopen_wrappers.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6454@lists.php.net to get a copy of this message | ||
sniper Tue Jul 31 20:31:19 2001 EDT
Modified files:
/php4/main fopen_wrappers.c fopen_wrappers.h
Log:
kill warning and make this build again.
Index: php4/main/fopen_wrappers.c
diff -u php4/main/fopen_wrappers.c:1.133 php4/main/fopen_wrappers.c:1.134
--- php4/main/fopen_wrappers.c:1.133 Tue Jul 31 19:32:24 2001
+++ php4/main/fopen_wrappers.c Tue Jul 31 20:31:19 2001
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen_wrappers.c,v 1.133 2001/07/31 23:32:24 zeev Exp $ */
+/* $Id: fopen_wrappers.c,v 1.134 2001/08/01 00:31:19 sniper Exp $ */
/* {{{ includes
*/
@@ -90,7 +90,7 @@
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;
}
Index: php4/main/fopen_wrappers.h
diff -u php4/main/fopen_wrappers.h:1.28 php4/main/fopen_wrappers.h:1.29
--- php4/main/fopen_wrappers.h:1.28 Tue Jul 31 03:09:47 2001
+++ php4/main/fopen_wrappers.h Tue Jul 31 20:31:19 2001
@@ -15,7 +15,7 @@
| Authors: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen_wrappers.h,v 1.28 2001/07/31 07:09:47 zeev Exp $ */
+/* $Id: fopen_wrappers.h,v 1.29 2001/08/01 00:31:19 sniper Exp $ */
#ifndef FOPEN_WRAPPERS_H
#define FOPEN_WRAPPERS_H
@@ -82,7 +82,7 @@
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