]> granicus.if.org Git - php/commitdiff
Fix some warnings
authorZeev Suraski <zeev@php.net>
Tue, 31 Jul 2001 23:32:24 +0000 (23:32 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 31 Jul 2001 23:32:24 +0000 (23:32 +0000)
ext/standard/ftp_fopen_wrapper.c
ext/standard/http_fopen_wrapper.c
ext/standard/php_fopen_wrappers.h
ext/zlib/php_zlib.h
ext/zlib/zlib_fopen_wrapper.c
main/fopen_wrappers.c

index f246ffeeabcb129d81fab14260c59bdaffec500b..c22b5b172fe610c28a26a5a3ce2edd76cbcbc1f4 100644 (file)
@@ -79,7 +79,7 @@ static int php_get_ftp_result(int socketd)
 
 /* {{{ php_fopen_url_wrap_ftp
  */
-FILE *php_fopen_url_wrap_ftp(char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
+FILE *php_fopen_url_wrap_ftp(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
 {
        FILE *fp=NULL;
        php_url *resource=NULL;
index 745e57ff00fc61dfda6c122803015ec644110567..253a75f413403ac3929ed38562b33e2a576f4ad3 100644 (file)
@@ -70,7 +70,7 @@
 
 /* {{{ php_fopen_url_wrap_http
  */
-FILE *php_fopen_url_wrap_http(char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
+FILE *php_fopen_url_wrap_http(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
 {
        FILE *fp=NULL;
        php_url *resource=NULL;
index 0f873183c08f945d4412bf51480f3b5d1f49a441..40daf3d1c27a7bb35d4c3bc1faa86bbba0f49543 100644 (file)
@@ -23,8 +23,8 @@
 #ifndef PHP_FOPEN_WRAPPERS_H
 #define PHP_FOPEN_WRAPPERS_H
 
-FILE *php_fopen_url_wrap_http(char *, char *, int, int *, int *, char ** TSRMLS_DC);
-FILE *php_fopen_url_wrap_ftp(char *, char *, int, int *, int *, char ** TSRMLS_DC);
-FILE *php_fopen_url_wrap_php(char *, char *, int, int *, int *, char ** TSRMLS_DC);
+FILE *php_fopen_url_wrap_http(const char *, char *, int, int *, int *, char ** TSRMLS_DC);
+FILE *php_fopen_url_wrap_ftp(const char *, char *, int, int *, int *, char ** TSRMLS_DC);
+FILE *php_fopen_url_wrap_php(const char *, char *, int, int *, int *, char ** TSRMLS_DC);
 
 #endif
index d4fe9af97d156c8a74a257a529fb9ee0411ea663..22432c4a1b3b3c93569df524f9b9e6da2355b8ce 100644 (file)
@@ -64,7 +64,7 @@ PHP_FUNCTION(gzinflate);
 PHP_FUNCTION(gzencode);
 PHP_FUNCTION(ob_gzhandler);
 
-FILE *zlib_fopen_wrapper(char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC);
+FILE *zlib_fopen_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC);
 int php_enable_output_compression(int buffer_size);
 
 
index f9328025ebbd42a291338c21dc3f638ab512ee96..5ab4dead5d3e86b90b062c8211cadfa045f88415 100644 (file)
@@ -59,7 +59,7 @@ static COOKIE_IO_FUNCTIONS_T gz_cookie_functions =
 , gz_closer
 };
 
-FILE *zlib_fopen_wrapper(char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
+FILE *zlib_fopen_wrapper(const char *path, char *mode, int options, int *issock, int *socketd, char **opened_path TSRMLS_DC)
 {
        struct gz_cookie *gc = NULL;
        FILE *fp;
index d009dbbf44af3dd9579542e7ab4d4177889bc731..fd43cf5ed01ebe0061f55597557e34c981125aa0 100644 (file)
@@ -87,7 +87,7 @@ static HashTable fopen_url_wrappers_hash;
 
 /* {{{ php_register_url_wrapper
  */
-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)
 {
        if(PG(allow_url_fopen)) {
                return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);