summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-02 19:59:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-02 19:59:46 (GMT)
commit79aecf895393d2871764a9405c9698fd73225925 (patch)
treee14ce866c67d4ef68916e8b79c2f3c35dc51c463 /src/H5FDlog.c
parenta36a5b30d79f037169fc5cf95a2a600ded674409 (diff)
downloadhdf5-79aecf895393d2871764a9405c9698fd73225925.zip
hdf5-79aecf895393d2871764a9405c9698fd73225925.tar.gz
hdf5-79aecf895393d2871764a9405c9698fd73225925.tar.bz2
[svn-r12706] Description:
Clean up some of the warnings on 64-bit Linux... Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2) Too minor to require h5committest
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r--src/H5FDlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index b933182..33a218a 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -1322,10 +1322,10 @@ H5FD_log_flush(H5FD_t *_file, hid_t UNUSED dxpl_id, unsigned UNUSED closing)
FUNC_ENTER_NOAPI(H5FD_log_flush, FAIL)
- if (file->eoa>file->eof) {
- if (-1==file_seek(file->fd, (file_offset_t)(file->eoa-1), SEEK_SET))
+ if(file->eoa>file->eof) {
+ if(-1 == file_seek(file->fd, (file_offset_t)(file->eoa - 1), SEEK_SET))
HGOTO_ERROR(H5E_IO, H5E_SEEKERROR, FAIL, "unable to seek to proper position")
- if (write(file->fd, "", 1)!=1)
+ if(write(file->fd, "", (size_t)1) != 1)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "file write failed")
file->eof = file->eoa;
file->pos = file->eoa;