]> git.ipfire.org Git - thirdparty/systemd.git/commit
mmap-cache: modernize mmap_cache_add_fd()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Sep 2023 00:38:59 +0000 (09:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 30 Sep 2023 21:35:02 +0000 (06:35 +0900)
commit8926a6a4672b2adb8b6535c66d3fe08b48c6d3c9
tree640fc2e5e566e9fc3f2711b6df6fd7bdb94545c9
parent397caa8122576fd80b1c61854bc67e9d36663ef5
mmap-cache: modernize mmap_cache_add_fd()

- use hashmap_ensure_put(),
- use _cleanup_free_ attribute,
- use structured initializer.
src/libsystemd/sd-journal/journal-file.c
src/libsystemd/sd-journal/journal-verify.c
src/libsystemd/sd-journal/mmap-cache.c
src/libsystemd/sd-journal/mmap-cache.h
src/libsystemd/sd-journal/test-mmap-cache.c