1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-09 12:58:26 +03:00

sd-journal: use FOREACH_ARRAY() at one more place

This commit is contained in:
Yu Watanabe 2023-12-22 01:28:44 +09:00
parent 43127aebc7
commit 474536c949

View File

@ -932,8 +932,8 @@ static int real_journal_next(sd_journal *j, direction_t direction) {
if (r < 0)
return r;
for (unsigned i = 0; i < n_files; i++) {
JournalFile *f = (JournalFile *)files[i];
FOREACH_ARRAY(_f, files, n_files) {
JournalFile *f = (JournalFile*) *_f;
bool found;
r = next_beyond_location(j, f, direction);