]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: replace handle_action_valid() macro by inline function
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Feb 2022 12:05:16 +0000 (13:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Mar 2022 15:24:10 +0000 (16:24 +0100)
commit6800876608f906e862f75d926e0fb2f380b138fc
tree7387666ba093775ad7372bc6daee4062a27898d7
parenta5a316e7a7be0a4fc0443a44f3868515eb27ff98
logind: replace handle_action_valid() macro by inline function

The old macro will double evaluation and has no protection against
operator precedence issues. Let's fix that by using an inline func
instead, which also gives us typesafety.
src/login/logind-action.h