diff options
author | Vito Caputo <vito.caputo@coreos.com> | 2016-02-20 01:36:27 +0100 |
---|---|---|
committer | Vito Caputo <vito.caputo@coreos.com> | 2016-02-20 01:54:19 +0100 |
commit | fb42603752444ad7a8b4e29a6e264cab7e219e9c (patch) | |
tree | 73a40addff2ffdb1e45cd0f35be5722ff3c07132 /src/journal | |
parent | Merge pull request #2666 from keszybz/coverity-fixes (diff) | |
download | systemd-fb42603752444ad7a8b4e29a6e264cab7e219e9c.tar.xz systemd-fb42603752444ad7a8b4e29a6e264cab7e219e9c.zip |
journal: add void cast to fsync() calls
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journal-file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 994d1ec5d8..ccb689451e 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -104,7 +104,7 @@ static int journal_file_set_online(JournalFile *f) { case STATE_OFFLINE: f->header->state = STATE_ONLINE; - fsync(f->fd); + (void) fsync(f->fd); return 0; default: @@ -124,7 +124,7 @@ int journal_file_set_offline(JournalFile *f) { if (f->header->state != STATE_ONLINE) return 0; - fsync(f->fd); + (void) fsync(f->fd); if (mmap_cache_got_sigbus(f->mmap, f->fd)) return -EIO; @@ -134,7 +134,7 @@ int journal_file_set_offline(JournalFile *f) { if (mmap_cache_got_sigbus(f->mmap, f->fd)) return -EIO; - fsync(f->fd); + (void) fsync(f->fd); return 0; } @@ -263,7 +263,7 @@ static int journal_file_refresh_header(JournalFile *f) { r = journal_file_set_online(f); /* Sync the online state to disk */ - fsync(f->fd); + (void) fsync(f->fd); return r; } |