]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: turn unit_load_fragment_and_dropin_optional() into a flag
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Oct 2019 08:41:44 +0000 (10:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Oct 2019 08:45:33 +0000 (10:45 +0200)
commitc36207708778a83d2c84c11dd522ce732d65527f
tree06527b02535dcedbe531ea4299f809a1873a4cd1
parent349176ae6c095725ddc11599dd03c7f16a5bb099
core: turn unit_load_fragment_and_dropin_optional() into a flag

unit_load_fragment_and_dropin() and unit_load_fragment_and_dropin_optional()
are really the same, with one minor difference in behaviour. Let's drop
the second function.

"_optional" in the name suggests that it's the "dropin" part that is optional.
(Which it is, but in this case, we mean the fragment to be optional.)
I think the new version with a flag is easier to understand.
12 files changed:
src/core/automount.c
src/core/device.c
src/core/mount.c
src/core/path.c
src/core/scope.c
src/core/slice.c
src/core/socket.c
src/core/swap.c
src/core/target.c
src/core/timer.c
src/core/unit.c
src/core/unit.h