Use size_t as parameter type in the getenv member of struct sapi_module

This commit is contained in:
Sascha Schumann 2000-08-20 14:20:21 +00:00
parent 6358dad0e1
commit 320105bcd8
3 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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, ...);

View File

@ -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);
}