diff options
author | Sascha Schumann <sas@php.net> | 2000-08-20 14:20:21 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-08-20 14:20:21 +0000 |
commit | 320105bcd8540a6673e54106c03d569249af48f9 (patch) | |
tree | 74eead513c49f663e85fea4e3934e2bf95421c2b | |
parent | 6358dad0e1bc99081c2a5012923ead2b73e53fc9 (diff) | |
download | php-git-320105bcd8540a6673e54106c03d569249af48f9.tar.gz |
Use size_t as parameter type in the getenv member of struct sapi_module
-rw-r--r-- | main/SAPI.c | 2 | ||||
-rw-r--r-- | main/SAPI.h | 4 | ||||
-rw-r--r-- | sapi/apache/mod_php4.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 040f23af77..60b886fd0a 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -570,7 +570,7 @@ SAPI_API struct stat *sapi_get_stat() } -SAPI_API char *sapi_getenv(char *name, int name_len) +SAPI_API char *sapi_getenv(char *name, size_t name_len) { if (sapi_module.getenv) { SLS_FETCH(); diff --git a/main/SAPI.h b/main/SAPI.h index 2bd91421a9..52f41864f0 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -140,7 +140,7 @@ SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(SLS_D SAPI_API int sapi_flush(void); SAPI_API struct stat *sapi_get_stat(void); -SAPI_API char *sapi_getenv(char *name, int name_len); +SAPI_API char *sapi_getenv(char *name, size_t name_len); SAPI_API char *sapi_get_default_content_type(SLS_D); SAPI_API void sapi_get_default_content_type_header(sapi_header_struct *default_header SLS_DC); @@ -159,7 +159,7 @@ struct _sapi_module_struct { int (*ub_write)(const char *str, unsigned int str_length); void (*flush)(void *server_context); struct stat *(*get_stat)(SLS_D); - char *(*getenv)(char *name, int name_len SLS_DC); + char *(*getenv)(char *name, size_t name_len SLS_DC); void (*sapi_error)(int type, const char *error_msg, ...); diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 8cbe1e3a4b..682d3eedfe 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -315,7 +315,7 @@ static struct stat *php_apache_get_stat(SLS_D) } -static char *php_apache_getenv(char *name, int name_len SLS_DC) +static char *php_apache_getenv(char *name, size_t name_len SLS_DC) { return (char *) table_get(((request_rec *) SG(server_context))->subprocess_env, name); } |