summaryrefslogtreecommitdiff
path: root/ext/session/mod_files.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-05-30 18:33:46 +0000
committerSterling Hughes <sterling@php.net>2001-05-30 18:33:46 +0000
commit948edd322b42e896226ac69693d11814527ddb1f (patch)
tree7aceb19d936a2e78e6a132c27ba4440f1fb7fe98 /ext/session/mod_files.c
parent439038759bb60dc3ca14d70115f5a7c39af5f240 (diff)
downloadphp-git-948edd322b42e896226ac69693d11814527ddb1f.tar.gz
should fix warnings under winblows.
Diffstat (limited to 'ext/session/mod_files.c')
-rw-r--r--ext/session/mod_files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index bf0c74338d..1f9cc69933 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -96,7 +96,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;
}
@@ -288,7 +288,7 @@ PS_WRITE_FUNC(files)
* the existing data set.
*/
- if (vallen < data->st_size)
+ if ((int) vallen < data->st_size)
ftruncate(data->fd, 0);
#ifdef HAVE_PWRITE