]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: perform objective->shutdown_verb mapping locally
authorVito Caputo <vcaputo@pengaru.com>
Thu, 29 Dec 2022 01:53:22 +0000 (17:53 -0800)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 2 Jan 2023 15:00:22 +0000 (16:00 +0100)
commitb22d392de68c97632ac58133d381f686d84e8f9a
tree7a7647dc456269792c7b6d3e465240eea4f94cc0
parent599c930e48c95e198dc0c8d9c8d68cf14cbfa566
manager: perform objective->shutdown_verb mapping locally

This is a small cleanup removing the need for the spurious
*ret_shutdown_verb argument on invoke_main_loop() while moving
the MANAGER_OBJECTIVE::shutdown_verb string mapping local to
where it actually gets added to the shutdown argv in
become_shutdown().

This also eliminates the need for the several clearings of
*ret_shutdown_argv, and the streq() branches of shutdown_verb in
favor of plain equality tests against the objective value.

Nothing functionally has been changed.
src/core/main.c