diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-08 14:47:32 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-05-10 16:55:37 +0200 |
commit | 1d3fe304fd3a604eacf29a56f3b7fa130657c826 (patch) | |
tree | 8c7e4fd73d1eee4e1ede0a9171014214a86638d3 /src/journal | |
parent | aa7585fd8e4fac0c983208a388592ba37d3dff51 (diff) | |
download | systemd-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.c | 3 |
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); |