X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Fjournal-file.c;h=121b40a58324a46064f605d718de78b2cfb30091;hb=9b55cd5665d94e2245a4ca90d2548bbcfe8c34fb;hp=9e89cb96992250c748d5dd3f990e2213d8d1ac09;hpb=08c6f819cb0ed435649583da02fa0de965b32dbe;p=elogind.git diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 9e89cb969..121b40a58 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -1628,8 +1628,6 @@ static int generic_array_bisect( else left = y + 1; } - - last_index = (uint64_t) -1; } for (;;) { @@ -2698,10 +2696,10 @@ int journal_file_open_reliably( /* The file is corrupted. Rotate it away and try it again (but only once) */ l = strlen(fname); - if (asprintf(&p, "%.*s@%016llx-%016llx.journal~", + if (asprintf(&p, "%.*s@%016llx-%016" PRIx64 ".journal~", (int) l - 8, fname, (unsigned long long) now(CLOCK_REALTIME), - random_ull()) < 0) + random_u64()) < 0) return -ENOMEM; r = rename(fname, p);