]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-path: simplify implementation of sd_path_lookup*()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Mar 2020 14:18:20 +0000 (15:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Mar 2020 19:12:44 +0000 (20:12 +0100)
commitce7eb6aa84b24d411ede7ed570faba78ee084493
treeb2c6fbcdbce5422f236910c44d8699e57d4ad1c9
parent09e6443ef454de24bdcb837a754433cd3c409437
sd-path: simplify implementation of sd_path_lookup*()

The two functions were duplicating a lot of functionality and more
importantly, they both had explicit lists of types which are search
paths. I want to add more types, and I don't want to have to remember
to add them to both lists.
src/libsystemd/sd-path/sd-path.c