]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
treewide: remove unused variables
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 18 Jul 2016 20:31:34 +0000 (22:31 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 18 Jul 2016 20:32:08 +0000 (22:32 +0200)
src/machine/machinectl.c
src/nspawn/nspawn.c
src/systemctl/systemctl.c
src/test/test-process-util.c

index 161dd3922b785b72439a316a52f993c4141480db..96e0ab4b8a9c10547953c261edd1a4a2bdacd929 100644 (file)
@@ -1551,7 +1551,6 @@ static int image_exists(sd_bus *bus, const char *name) {
 }
 
 static int make_service_name(const char *name, char **ret) {
-        _cleanup_free_ char *e = NULL;
         int r;
 
         assert(name);
index bedc5bf20bc0d7948f6d1dfcc1aac12e3b6b7ba2..e4be0a225139e7fc01a49cbfd24fa433ed02821f 100644 (file)
@@ -3125,7 +3125,6 @@ static int setup_uid_map(pid_t pid) {
 }
 
 static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) {
-        _cleanup_fdset_free_ FDSet *fds = NULL;
         char buf[NOTIFY_BUFFER_MAX+1];
         char *p = NULL;
         struct iovec iovec = {
index b575437bcb566438795e109f28148b233f4c36b4..d3f437411a9bbc5f4c4d78f2b307863cf19141db 100644 (file)
@@ -5606,7 +5606,7 @@ static int mangle_names(char **original_names, char ***mangled_names) {
 }
 
 static int unit_exists(const char *unit) {
-        _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL, *m = NULL;
+        _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
         _cleanup_free_ char *path = NULL;
         static const struct bus_properties_map property_map[] = {
index 99c92780b80de21dbd793fea3305768a7039858e..562ad4acb855c31747d54998dd33c3a2bf7653d7 100644 (file)
@@ -45,7 +45,7 @@
 
 static void test_get_process_comm(pid_t pid) {
         struct stat st;
-        _cleanup_free_ char *a = NULL, *c = NULL, *d = NULL, *f = NULL, *i = NULL, *cwd = NULL, *root = NULL;
+        _cleanup_free_ char *a = NULL, *c = NULL, *d = NULL, *f = NULL, *i = NULL;
         _cleanup_free_ char *env = NULL;
         char path[strlen("/proc//comm") + DECIMAL_STR_MAX(pid_t)];
         pid_t e;