]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: fix internal types used for EnableWallMessages
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2022 21:56:47 +0000 (22:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2022 21:56:47 +0000 (22:56 +0100)
commit81bb3ca13cd3b2e3dbc0a72821e0ae595a1e086f
tree31583a53d4f08f2684b161b985e3669f59936647
parent3414394e0b978501a4b0dd9c4582a60ffce238e9
logind: fix internal types used for EnableWallMessages

The value is used as a boolean, but stored in an unsigned. It's exposed
with sd-bus default boolean handling which however expects a (signed)
int. Let's clear this up, and use "bool" for this everywhere in
non-local scope, and make sure that when we pass it to sd-bus we
properly pass an "int".
src/login/logind-dbus.c
src/login/logind.h