From 98dc115fabd4ed47c570cb8471b99554de9f6ec3 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 17 Dec 2003 09:02:07 +0000 Subject: [PATCH] MFH: Fix warnings --- ext/dba/dba_flatfile.c | 5 ++++- ext/dba/libinifile/inifile.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/dba/dba_flatfile.c b/ext/dba/dba_flatfile.c index 576268ae06..49f51b8fb9 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 0f9a3d94b3..5edec46d71 100644 --- a/ext/dba/libinifile/inifile.c +++ b/ext/dba/libinifile/inifile.c @@ -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"); -- 2.50.1