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:
parent
43127aebc7
commit
474536c949
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user