summaryrefslogtreecommitdiffstats
path: root/src/H5FDlog.c
diff options
context:
space:
mode:
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;