summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-flush.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-21 21:35:50 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-21 21:35:50 +0100
commit1f210bdbe65dffcb6daeb9d9cddbf0b2d02f8718 (patch)
tree13fc5e73ea6bb4526ae32d3241432dd0fe2b7f63 /src/journal/test-journal-flush.c
parentc7044f9ed295ca2d83bcd0059a86a9443361eaec (diff)
parentb58c888f30947b29730768c48ad402a2c5b65be9 (diff)
Merge pull request #2650 from vcaputo/async_fsync
Perform journal offlines asynchronously when possible
Diffstat (limited to 'src/journal/test-journal-flush.c')
-rw-r--r--src/journal/test-journal-flush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c
index 7bd9c40366..93dc0e0d81 100644
--- a/src/journal/test-journal-flush.c
+++ b/src/journal/test-journal-flush.c
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
assert_se(mkdtemp(dn));
fn = strappend(dn, "/test.journal");
- r = journal_file_open(fn, O_CREAT|O_RDWR, 0644, false, false, NULL, NULL, NULL, &new_journal);
+ r = journal_file_open(fn, O_CREAT|O_RDWR, 0644, false, false, NULL, NULL, NULL, NULL, &new_journal);
assert_se(r >= 0);
r = sd_journal_open(&j, 0);
@@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
sd_journal_close(j);
- journal_file_close(new_journal);
+ (void) journal_file_close(new_journal);
unlink(fn);
assert_se(rmdir(dn) == 0);