summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 == '.')