diff options
author | Marcus Boerger <helly@php.net> | 2003-12-17 08:50:50 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-12-17 08:50:50 +0000 |
commit | fb37c4306a9bb3d6c2b52742fa62243235138e88 (patch) | |
tree | d7cdef5657b326d3d857ff0a88186616392c9e6d /ext/dba | |
parent | 00c012804e7c3ec5a1d8e93e6fde45b25117b26d (diff) | |
download | php-git-fb37c4306a9bb3d6c2b52742fa62243235138e88.tar.gz |
Fix warnings
Diffstat (limited to 'ext/dba')
-rw-r--r-- | ext/dba/dba_flatfile.c | 5 | ||||
-rw-r--r-- | 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 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"); |