summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-08 14:47:32 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-05-10 16:55:37 +0200
commit1d3fe304fd3a604eacf29a56f3b7fa130657c826 (patch)
tree8c7e4fd73d1eee4e1ede0a9171014214a86638d3 /src/journal
parentaa7585fd8e4fac0c983208a388592ba37d3dff51 (diff)
downloadsystemd-1d3fe304fd3a604eacf29a56f3b7fa130657c826.tar.gz
systemd-1d3fe304fd3a604eacf29a56f3b7fa130657c826.tar.bz2
systemd-1d3fe304fd3a604eacf29a56f3b7fa130657c826.zip
Use sd_event_source_disable_unref()
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journal-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 91d1c2921a..3e285021bd 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -357,8 +357,7 @@ JournalFile* journal_file_close(JournalFile *f) {
if (sd_event_source_get_enabled(f->post_change_timer, NULL) > 0)
journal_file_post_change(f);
- (void) sd_event_source_set_enabled(f->post_change_timer, SD_EVENT_OFF);
- sd_event_source_unref(f->post_change_timer);
+ sd_event_source_disable_unref(f->post_change_timer);
}
journal_file_set_offline(f, true);