From c75436067f4b392ecf161e123279720dc5c3b33a 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/core/umount.c | 2 +- src/login/loginctl.c | 2 -- src/login/logind-dbus.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/umount.c b/src/core/umount.c index 0323bdbd80..76435209d0 100644 --- a/src/core/umount.c +++ b/src/core/umount.c @@ -88,7 +88,7 @@ int mount_points_list_get(const char *mountinfo, MountPoint **head) { for (;;) { struct libmnt_fs *fs; const char *path, *options, *fstype; - _cleanup_free_ char *d = NULL, *p = NULL; + _cleanup_free_ char *p = NULL; unsigned long remount_flags = 0u; _cleanup_free_ char *remount_options = NULL; bool try_remount_ro; diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 6ad0a277c9..8f52362e92 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -776,8 +776,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 dab4d8aea2..94c8f1f142 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -658,7 +658,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.25.1