From 65c1d46b0923771955519329160a1e4c7cd027b0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 17 Nov 2015 00:02:43 +0100 Subject: [PATCH] journald: trivial simplification --- src/journal/journald-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index a7eeafc..98446e4 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -360,7 +360,6 @@ void server_rotate(Server *s) { void server_sync(Server *s) { JournalFile *f; - void *k; Iterator i; int r; @@ -370,7 +369,7 @@ void server_sync(Server *s) { log_warning_errno(r, "Failed to sync system journal, ignoring: %m"); } - ORDERED_HASHMAP_FOREACH_KEY(f, k, s->user_journals, i) { + ORDERED_HASHMAP_FOREACH(f, s->user_journals, i) { r = journal_file_set_offline(f); if (r < 0) log_warning_errno(r, "Failed to sync user journal, ignoring: %m"); -- 2.7.4