]> granicus.if.org Git - php/commitdiff
removed warnings
authorHarald Radi <phanto@php.net>
Sun, 10 Jun 2001 23:26:35 +0000 (23:26 +0000)
committerHarald Radi <phanto@php.net>
Sun, 10 Jun 2001 23:26:35 +0000 (23:26 +0000)
ext/session/mod_files.c
ext/session/session.c

index 58942891650553e82fff549cd8d1c6f4fadcfa58..5ed3e0aa4d5278d604847196b1f1fc2361ae725b 100644 (file)
@@ -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
index 52ed8fba10e25adfd728d132b789c71ab8a7e107..4f741f428a8832933eeaee770bdd20f8610fc953 100644 (file)
@@ -303,7 +303,7 @@ PS_SERIALIZER_ENCODE_FUNC(php_binary)
                        php_var_serialize(buf, struc, &var_hash);
                } else {
                        if (key_length > PS_BIN_MAX) continue;
-                       strbuf[0] = (unsigned char) key_length & PS_BIN_UNDEF;
+                       strbuf[0] = (unsigned char) (key_length & PS_BIN_UNDEF);
                        memcpy(strbuf + 1, key, key_length);
                        
                        STR_CAT(buf, strbuf, key_length + 1);