chiark / gitweb /
Always use our own MAX/MIN definitions
[elogind.git] / src / journal / journal-file.c
index 5b077be0da4748771fb36e83f2b96ede4954cb39..a44e126c0effbcc52fea2216fd3975d350e4648d 100644 (file)
@@ -1325,7 +1325,7 @@ int journal_file_append_entry(JournalFile *f, const dual_timestamp *ts, const st
 #endif
 
         /* alloca() can't take 0, hence let's allocate at least one */
-        items = alloca(sizeof(EntryItem) * MAX(1, n_iovec));
+        items = alloca(sizeof(EntryItem) * MAX(1u, n_iovec));
 
         for (i = 0; i < n_iovec; i++) {
                 uint64_t p;