chiark / gitweb /
journal: abstract the resetting of JournalFile's location
[elogind.git] / src / journal / sd-journal.c
index 72c9770a99b0402004d9264d351284de4663b8cf..adaf402f46ced2781f32b590444dd80f390b6c27 100644 (file)
@@ -87,7 +87,7 @@ static void detach_location(sd_journal *j) {
         j->current_field = 0;
 
         ORDERED_HASHMAP_FOREACH(f, j->files, i)
-                f->current_offset = 0;
+                journal_file_reset_location(f);
 }
 
 static void reset_location(sd_journal *j) {