]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: adjust load functions for other unit types to be more like service
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Oct 2019 10:48:33 +0000 (12:48 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Oct 2019 11:46:05 +0000 (13:46 +0200)
commit75193d4128c08291a17b0d7be11722d071650425
tree6332a42542f59678bc2a6d3ff983354f5595be92
parentc3784a7d78df9c8f50ce6d14642cf37d412edcc6
core: adjust load functions for other unit types to be more like service

No functional change, just adjusting code to follow the same pattern
everywhere. In particular, never call _verify() on an already loaded unit,
but return early from the caller instead. This makes the code a bit easier
to follow.
src/core/automount.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