From c2b1be354908cf02175d5c48301d351fc6d8d07a Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 1 Jul 2006 11:50:52 +0000 Subject: [PATCH] MFB5.2: const keywording --- main/fopen_wrappers.c | 4 ++-- main/fopen_wrappers.h | 2 +- main/network.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index ad168277b69..265097d8baa 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -189,7 +189,7 @@ PHPAPI int php_check_open_basedir_ex(const char *path, int warn TSRMLS_DC) /* {{{ php_fopen_and_set_opened_path */ -static FILE *php_fopen_and_set_opened_path(const char *path, char *mode, char **opened_path TSRMLS_DC) +static FILE *php_fopen_and_set_opened_path(const char *path, const char *mode, char **opened_path TSRMLS_DC) { FILE *fp; @@ -306,7 +306,7 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC) * Tries to open a file with a PATH-style list of directories. * If the filename starts with "." or "/", the path is ignored. */ -PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char **opened_path TSRMLS_DC) +PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC) { char *pathbuf, *ptr, *end; char *exec_fname; diff --git a/main/fopen_wrappers.h b/main/fopen_wrappers.h index 020365470d4..fc46f92a6c1 100644 --- a/main/fopen_wrappers.h +++ b/main/fopen_wrappers.h @@ -31,7 +31,7 @@ PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC); PHPAPI int php_check_open_basedir_ex(const char *path, int warn TSRMLS_DC); PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC); -PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char **opened_path TSRMLS_DC); +PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC); PHPAPI int php_is_url(char *path); PHPAPI char *php_strip_url_passwd(char *path); diff --git a/main/network.c b/main/network.c index 6785242b2a3..0832890389b 100644 --- a/main/network.c +++ b/main/network.c @@ -103,7 +103,7 @@ int inet_aton(const char *, struct in_addr *); # define PHP_GAI_STRERROR(x) (php_gai_strerror(x)) /* {{{ php_gai_strerror */ -static char *php_gai_strerror(int code) +static const char *php_gai_strerror(int code) { static struct { int code;