chiark / gitweb /
shared: switch our hash table implementation over to SipHash
[elogind.git] / src / journal / journal-file.c
index b7e5cf0ab5bff9576aa74b2e155874f62e80612b..121b40a58324a46064f605d718de78b2cfb30091 100644 (file)
@@ -2696,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);