diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-29 19:50:50 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 2e98ac7bc4ba90c08d8aeea3fe689a3edc34ad0d (patch) | |
tree | f0e33ed853f2bfae0e8f18d19234db545406765e /src/login | |
parent | f536abd4560d2f871698bb4d27566c66cfe110ef (diff) |
tree-wide: remove unused variables (#8612)
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/loginctl.c | 2 | ||||
-rw-r--r-- | src/login/logind-dbus.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 96c49947f..40f3bd241 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -798,8 +798,6 @@ static int print_property(const char *name, sd_bus_message *m, bool value, bool } static int show_properties(sd_bus *bus, const char *path, bool *new_line) { - _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; - _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; int r; assert(bus); diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 7f99a8cce..0d4145967 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -661,7 +661,7 @@ static int method_list_inhibitors(sd_bus_message *message, void *userdata, sd_bu static int method_create_session(sd_bus_message *message, void *userdata, sd_bus_error *error) { const char *service, *type, *class, *cseat, *tty, *display, *remote_user, *remote_host, *desktop; - _cleanup_free_ char *unit = NULL, *id = NULL; + _cleanup_free_ char *id = NULL; Session *session = NULL; uint32_t audit_id = 0; Manager *m = userdata; |