]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl-filter: modernize add_units()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Mar 2024 17:47:21 +0000 (02:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 26 Mar 2024 14:51:46 +0000 (23:51 +0900)
commit5d53eef97baad50dc37d0b5aa554432b278f669c
treecb6094d625c521d98aeb23c1e722d1e0733b60a2
parent17c512f1cc238d7f1d00e3160afb7b982157ce5a
journalctl-filter: modernize add_units()

- add missing assertions,
- use set_ensure_consume() and strv_consume(),
- use string_hash_ops_free and _cleanup_set_free_,
- use strv_fnmatch_full(),
- replace unused counter with a boolean flag,
- return earlier if no unit filtering is requested.
src/journal/journalctl-filter.c