tree-wide: remove unused variables (#8612)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Mar 2018 10:50:50 +0000 (19:50 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 29 Mar 2018 10:50:50 +0000 (12:50 +0200)
src/core/umount.c
src/login/loginctl.c
src/login/logind-dbus.c

index 0323bdbd808abc57747566a424d9f8c188c32c22..76435209d0c327daebd99d2bffc0c2fe65d416eb 100644 (file)
@@ -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;
index 6ad0a277c97bd79cb749845f8812b6eb6db217d3..8f52362e92e26fb9c2a4176b416b67daf9634487 100644 (file)
@@ -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);
index dab4d8aea2292c242ce6d450e643ae971973683c..94c8f1f14204bfd540c761f13d246621b7844eac 100644 (file)
@@ -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;