From: Marcus Boerger Date: Wed, 17 Dec 2003 08:50:50 +0000 (+0000) Subject: Fix warnings X-Git-Tag: php-5.0.0b3RC1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb37c4306a9bb3d6c2b52742fa62243235138e88;p=php Fix warnings --- diff --git a/ext/dba/dba_flatfile.c b/ext/dba/dba_flatfile.c index 1cd82712f6..1ccaeb0c0c 100644 --- a/ext/dba/dba_flatfile.c +++ b/ext/dba/dba_flatfile.c @@ -41,7 +41,10 @@ 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)) { diff --git a/ext/dba/libinifile/inifile.c b/ext/dba/libinifile/inifile.c index 2e624128b3..9a2ed58353 100644 --- a/ext/dba/libinifile/inifile.c +++ b/ext/dba/libinifile/inifile.c @@ -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");