From 320105bcd8540a6673e54106c03d569249af48f9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 20 Aug 2000 14:20:21 +0000 Subject: [PATCH] Use size_t as parameter type in the getenv member of struct sapi_module --- main/SAPI.c | 2 +- main/SAPI.h | 4 ++-- sapi/apache/mod_php4.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/SAPI.c b/main/SAPI.c index 040f23af778..60b886fd0ab 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 2bd91421a9e..52f41864f0b 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 8cbe1e3a4b1..682d3eedfe9 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); }