From 2e98ac7bc4ba90c08d8aeea3fe689a3edc34ad0d Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 29 Mar 2018 19:50:50 +0900 Subject: [PATCH] tree-wide: remove unused variables (#8612) --- src/login/loginctl.c | 2 -- src/login/logind-dbus.c | 2 +- 2 files changed, 1 insertion(+), 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; -- 2.30.2