chiark / gitweb /
tree-wide: remove unused variables (#8612)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Mar 2018 10:50:50 +0000 (19:50 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/login/loginctl.c
src/login/logind-dbus.c

index 96c49947f23c2264e6639b4ef45938138a536edb..40f3bd2414ee137e51e8088b1310af18eb60ae6e 100644 (file)
@@ -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);
index 7f99a8cce26a9ea9711e86157adb6a8c5b2080e3..0d4145967e4503c2c0bea2262f3f896af296f1b5 100644 (file)
@@ -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;