summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-17 00:02:43 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-17 00:52:10 +0100
commit65c1d46b0923771955519329160a1e4c7cd027b0 (patch)
tree6ab2e135731d278bd6e63889e02110e25a1b53c5 /src/journal
parentc292d9e953c071c445c53ae0842848783ec242cc (diff)
journald: trivial simplification
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journald-server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index a7eeafc9a7..98446e451c 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");