From: Lennart Poettering Date: Wed, 25 Jan 2023 13:07:50 +0000 (+0100) Subject: journal-file: fix type of array counter X-Git-Tag: v253-rc2~70^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b45a7215fdf823c695cec939cba600a873eb1af0;p=thirdparty%2Fsystemd.git journal-file: fix type of array counter --- diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index 32dd4cfeb80..9db87481f18 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -2248,7 +2248,7 @@ int journal_file_append_entry( const dual_timestamp *ts, const sd_id128_t *boot_id, const struct iovec iovec[], - unsigned n_iovec, + size_t n_iovec, uint64_t *seqnum, Object **ret_object, uint64_t *ret_offset) { diff --git a/src/libsystemd/sd-journal/journal-file.h b/src/libsystemd/sd-journal/journal-file.h index a1154a01072..a35aa5daef5 100644 --- a/src/libsystemd/sd-journal/journal-file.h +++ b/src/libsystemd/sd-journal/journal-file.h @@ -254,7 +254,8 @@ int journal_file_append_entry( JournalFile *f, const dual_timestamp *ts, const sd_id128_t *boot_id, - const struct iovec iovec[], unsigned n_iovec, + const struct iovec iovec[], + size_t n_iovec, uint64_t *seqno, Object **ret_object, uint64_t *ret_offset);