chiark / gitweb /
Add __attribute__((const, pure, format)) in various places
[elogind.git] / src / journal / journal-file.c
index a44e126c0effbcc52fea2216fd3975d350e4648d..876224dc9ffb69f281c85d7d680c1d7ae2ad8815 100644 (file)
@@ -1712,7 +1712,7 @@ found:
         return 1;
 }
 
-static int test_object_offset(JournalFile *f, uint64_t p, uint64_t needle) {
+_pure_ static int test_object_offset(JournalFile *f, uint64_t p, uint64_t needle) {
         assert(f);
         assert(p > 0);