]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Remove unused variables
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Jan 2014 05:32:43 +0000 (00:32 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Jan 2014 14:16:15 +0000 (09:16 -0500)
src/core/main.c
src/modules-load/modules-load.c
src/sysctl/sysctl.c

index 6db42991e83ae03ed0897dbfdd4e3af67d33836f..1b1741a64513ff1b7f7e446d86824bf61ee69d09 100644 (file)
@@ -599,8 +599,6 @@ static int config_parse_join_controllers(const char *unit,
                         for (a = arg_join_controllers; *a; a++) {
 
                                 if (strv_overlap(*a, l)) {
-                                        char **c;
-
                                         if (strv_extend_strv(&l, *a) < 0) {
                                                 strv_free(l);
                                                 strv_free_free(t);
index 01987f2e3c2a2f84df6da2d4e5faa64c10dbcec4..3ac25fa98dbbfa6e13515b40eb8394d332705bcb 100644 (file)
@@ -57,7 +57,6 @@ static void systemd_kmod_log(void *data, int priority, const char *file, int lin
 #pragma GCC diagnostic pop
 
 static int add_modules(const char *p) {
-        char **t;
         _cleanup_strv_free_ char **k = NULL;
 
         k = strv_split(p, ",");
index 57112a7ef9eaf23c33f402f20948cb897f54f15e..76efacb14a0227029b3a7d2a88dd36dd4ea9509a 100644 (file)
@@ -245,7 +245,6 @@ static int parse_argv(int argc, char *argv[]) {
 
                 case ARG_PREFIX: {
                         char *p;
-                        char **l;
 
                         for (p = optarg; *p; p++)
                                 if (*p == '.')