chiark / gitweb /
journal: consistently use OBJECT_<type> names instead of numbers
[elogind.git] / src / journal / journal-authenticate.c
index fd3b82134f313192a9954276a1f2ce3fcf6eeb24..0e31c8dc9126fc0dbbd6ac2642a3132e7773cde7 100644 (file)
@@ -246,7 +246,7 @@ int journal_file_hmac_put_object(JournalFile *f, int type, Object *o, uint64_t p
                 if (r < 0)
                         return r;
         } else {
-                if (type > 0 && o->object.type != type)
+                if (type > OBJECT_UNUSED && o->object.type != type)
                         return -EBADMSG;
         }