diff options
author | Harald Radi <phanto@php.net> | 2001-06-10 23:26:35 +0000 |
---|---|---|
committer | Harald Radi <phanto@php.net> | 2001-06-10 23:26:35 +0000 |
commit | 22790c96021cdf602445983912f814424b4b7a64 (patch) | |
tree | 82e60adc0ae2de3577c0a1783c150c4c8ab26c76 /ext/session/mod_files.c | |
parent | eea60318d775351ad5724e7c8cea6dc785cd4169 (diff) | |
download | php-git-22790c96021cdf602445983912f814424b4b7a64.tar.gz |
removed warnings
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r-- | ext/session/mod_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 5894289165..5ed3e0aa4d 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -98,7 +98,7 @@ static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, cons memcpy(buf, data->basedir, data->basedir_len); n = data->basedir_len; buf[n++] = PHP_DIR_SEPARATOR; - for (i = 0; i < data->dirdepth; i++) { + for (i = 0; i < (int)data->dirdepth; i++) { buf[n++] = *p++; buf[n++] = PHP_DIR_SEPARATOR; } @@ -290,7 +290,7 @@ PS_WRITE_FUNC(files) * the existing data set. */ - if (vallen < data->st_size) + if (vallen < (int)data->st_size) ftruncate(data->fd, 0); #ifdef HAVE_PWRITE |