diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-26 20:40:08 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-26 20:50:53 +0900 |
commit | 265b1dc04845788973ef95e80fae8db258a8c49a (patch) | |
tree | d21d13553fa79f1854d0aa7dd7faaed8081c5a89 /src/libsystemd | |
parent | f81409f844ae8077f7ee7664871f73fa7d440581 (diff) | |
download | systemd-265b1dc04845788973ef95e80fae8db258a8c49a.tar.gz |
sd-journal: tighten variable scope
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-journal/journal-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index bafd2bae80..f14e7aa23d 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -4168,7 +4168,7 @@ int journal_file_copy_entry( _cleanup_free_ EntryItem *items_alloc = NULL; EntryItem *items; - uint64_t q, n, m = 0, xor_hash = 0; + uint64_t n, m = 0, xor_hash = 0; const sd_id128_t *boot_id; dual_timestamp ts; int r; @@ -4200,7 +4200,7 @@ int journal_file_copy_entry( } for (uint64_t i = 0; i < n; i++) { - uint64_t h; + uint64_t h, q; void *data; size_t l; Object *u; |