]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: fix bool/int confusion for KillUserProcesses bus property 22543/head
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2022 21:58:19 +0000 (22:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2022 21:58:19 +0000 (22:58 +0100)
commit0db7e17cba1da277a2074098cfffcc75062b9b2f
treebca34e613d82b4256af1cdda042f110ad593b07b
parent81bb3ca13cd3b2e3dbc0a72821e0ae595a1e086f
logind: fix bool/int confusion for KillUserProcesses bus property

sd-bus for compat with old C expects "int" for booleans. Internally we
prefer to use C99 "bool" however. When pointing a pointer to it, we need
to handle the fact that they are typically differently sized, hence use
te right accessors for it.
src/login/logind-dbus.c