]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: run while-true.cocci again
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Mar 2018 15:32:26 +0000 (16:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Mar 2018 15:32:26 +0000 (16:32 +0100)
src/journal/test-journal.c

index 3b9917b4a8c522afa1be95c79b53f25b95a8544f..f90b7e43755630f40298d52f09a22d63821f1e64 100644 (file)
@@ -200,7 +200,7 @@ static bool check_compressed(uint64_t compress_threshold, uint64_t data_size) {
         /* We have to partially reimplement some of the dump logic, because the normal next_entry does the
          * decompression for us. */
         p = le64toh(f->header->header_size);
-        while (true) {
+        for (;;) {
                 r = journal_file_move_to_object(f, OBJECT_UNUSED, p, &o);
                 assert_se(r == 0);
                 if (o->object.type == OBJECT_DATA)