From: Daan De Meyer Date: Sun, 31 Oct 2021 12:33:40 +0000 (+0000) Subject: journal: Use size_t instead of unsigned for array sizes X-Git-Tag: v250-rc1~195^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86e68f3814535136c849ab4b566ce57bf14e8b72;p=thirdparty%2Fsystemd.git journal: Use size_t instead of unsigned for array sizes --- diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index b4052ad417b..729c734156a 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -497,7 +497,7 @@ static bool warn_wrong_flags(const JournalFile *f, bool compatible) { flags = (flags & any) & ~supported; if (flags) { const char* strv[5]; - unsigned n = 0; + size_t n = 0; _cleanup_free_ char *t = NULL; if (compatible) { @@ -2148,7 +2148,7 @@ int journal_file_append_entry( items = newa(EntryItem, n_iovec); - for (unsigned i = 0; i < n_iovec; i++) { + for (size_t i = 0; i < n_iovec; i++) { uint64_t p; Object *o;