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

index 576268ae0640d92507c06e55bce4d2b909868744..49f51b8fb9838c6e8bdcbe054fd649d12233c911 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 0f9a3d94b3704d110b089b9b3e1fd4ed4a4a1159..5edec46d71a3c74de03ee93d4920dfa4f7d8eb60 100644 (file)
@@ -499,7 +499,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");