summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-05 00:32:43 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-05 09:16:15 -0500
commitcc3d61683d877791e6b2ce0b17940d4d77cd6550 (patch)
treecc5de993786e3ecebca035e7bd27efcbd0aa6ff0
parente3e45d4f82daa5cd85ba40dde9127df900096c0c (diff)
Remove unused variables
-rw-r--r--src/core/main.c2
-rw-r--r--src/modules-load/modules-load.c1
-rw-r--r--src/sysctl/sysctl.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 6db42991e8..1b1741a645 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -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);
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c
index 01987f2e3c..3ac25fa98d 100644
--- a/src/modules-load/modules-load.c
+++ b/src/modules-load/modules-load.c
@@ -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, ",");
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index 57112a7ef9..76efacb14a 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -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 == '.')