diff options
author | Umut Tezduyar Lindskog <umuttl@axis.com> | 2015-07-08 14:35:32 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-03-14 10:06:01 +0100 |
commit | 8286423f0eaf8b4cd8229612bdcbeef381cf1a09 (patch) | |
tree | 91d56deabbe485c99e7e0836b14bc54a8b6abcc7 /src/login/logind-user-dbus.c | |
parent | 6c36148bbc47bead5483bb4e911f6698c1e7c21e (diff) |
property callback returns are consistent
It is no different to return 0 over 1 in the property
callback. It is confusing to return 1 which made me think
1 has a special purpose. This way code is consistent with
the rest of the tree.
Diffstat (limited to 'src/login/logind-user-dbus.c')
-rw-r--r-- | src/login/logind-user-dbus.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/login/logind-user-dbus.c b/src/login/logind-user-dbus.c index 0f72d70b1..36c0e8626 100644 --- a/src/login/logind-user-dbus.c +++ b/src/login/logind-user-dbus.c @@ -103,11 +103,7 @@ static int property_get_sessions( } - r = sd_bus_message_close_container(reply); - if (r < 0) - return r; - - return 1; + return sd_bus_message_close_container(reply); } static int property_get_idle_hint( |