]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/swap.c
core: rework device_found_node() prototype
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Jun 2018 16:06:05 +0000 (18:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Jun 2018 11:36:19 +0000 (13:36 +0200)
commit485ae697ba48bcd3c38a01d0af17831ac87a5c55
treeb3b11e80b98c5bb2c3729457b668132b349c4fb4
parent87934b36b13b48af6d412c3473d5c3eb11e6a32c
core: rework device_found_node() prototype

let's drop the "now" argument, it's exactly what MANAGER_IS_RUNNING()
returns, hence let's use that instead to simplify things.

Moreover, let's change the add/found argument pair to become found/mask,
which allows us to change multiple flags at the same time into opposing
directions, which will be useful later on.

Also, let's change the return type to void. It's a notifier call where
callers will ignore the return value anyway as it is nothing actionable.

Should not change behaviour.
src/core/device.c
src/core/device.h
src/core/mount.c
src/core/swap.c