]> granicus.if.org Git - php/commitdiff
Fix warnings
authorMarcus Boerger <helly@php.net>
Wed, 17 Dec 2003 08:50:50 +0000 (08:50 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 17 Dec 2003 08:50:50 +0000 (08:50 +0000)
ext/dba/dba_flatfile.c
ext/dba/libinifile/inifile.c

index 1cd82712f6e24b49c859823b88fafd1c0b06064b..1ccaeb0c0ce1845434119759e69496b35702c4ab 100644 (file)
 
 DBA_OPEN_FUNC(flatfile)
 {
-       int fd, flags;
+       int fd;
+#ifdef F_SETFL
+       int flags;
+#endif
 
        if (info->mode != DBA_READER) {
                if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&fd, 1)) {
index 2e624128b3fcbf780e2689635c9466fc5e5c8155..9a2ed583539914940ce0a8d96bb68031cce11b3a 100644 (file)
@@ -500,7 +500,7 @@ static int inifile_delete_replace_append(inifile *dba, const key_type *key, cons
                        ret = FAILURE;
                } else {
                        php_stream_seek(dba->fp, 0, SEEK_END);
-                       if (pos_grp_next != php_stream_tell(dba->fp)) {
+                       if (pos_grp_next != (size_t)php_stream_tell(dba->fp)) {
                                php_stream_seek(dba->fp, pos_grp_next, SEEK_SET);
                                if (!php_stream_copy_to_stream(dba->fp, fp_tmp, PHP_STREAM_COPY_ALL)) {
                                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not copy remainder to temporary stream");