]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: drop unused variables
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 25 May 2018 09:09:01 +0000 (18:09 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 May 2018 09:33:28 +0000 (11:33 +0200)
Follow-ups for #8620.

src/basic/fd-util.c
src/portable/portablectl.c
src/shared/machine-image.c

index dc63cb0d7ced0bef4cd52ef7e03be69cb80e3e08..e54881ca3c4965c2d3da59aba8948209a42be6cc 100644 (file)
@@ -575,7 +575,6 @@ int fd_duplicate_data_fd(int fd) {
 
         _cleanup_close_ int copy_fd = -1, tmp_fd = -1;
         _cleanup_free_ void *remains = NULL;
-        _cleanup_free_ char *t = NULL;
         size_t remains_size = 0;
         const char *td;
         struct stat st;
index 8e44d34d27550b0c27fc33e1df7194d72233708a..99690fc768152e0a376ecbfd6add3994f82df2b1 100644 (file)
@@ -744,7 +744,6 @@ static int dump_profiles(void) {
         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
         _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
         _cleanup_strv_free_ char **l = NULL;
-        _cleanup_(closedirp) DIR *d = NULL;
         char **i;
         int r;
 
index d97b522bdb28f4011e4efc9ce7f8dcb0f48b0da5..e67f1f0645e0233a7112ea20e0e53e0c98f9882a 100644 (file)
@@ -1100,7 +1100,6 @@ int image_read_metadata(Image *i) {
                 sd_id128_t machine_id = SD_ID128_NULL;
                 _cleanup_free_ char *hostname = NULL;
                 _cleanup_free_ char *path = NULL;
-                _cleanup_fclose_ FILE *f = NULL;
 
                 r = chase_symlinks("/etc/hostname", i->path, CHASE_PREFIX_ROOT|CHASE_TRAIL_SLASH, &path);
                 if (r < 0 && r != -ENOENT)