]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-socket-bind.c
strv: make iterator in STRV_FOREACH() declaread in the loop
[thirdparty/systemd.git] / src / test / test-socket-bind.c
index ca1b44fd3374a0dc1c163ccddda9b9814d79e819..62300c4ae43913a6f50a40a53e6f1dd3e8ba39a9 100644 (file)
@@ -13,7 +13,7 @@
 #include "virt.h"
 
 static int find_netcat_executable(char **ret_path) {
-        char **candidates = STRV_MAKE("ncat", "nc", "netcat"), **c;
+        char **candidates = STRV_MAKE("ncat", "nc", "netcat");
         int r = 0;
 
         STRV_FOREACH(c, candidates) {
@@ -35,7 +35,6 @@ static int test_socket_bind(
         _cleanup_free_ char *exec_start = NULL;
         _cleanup_(unit_freep) Unit *u = NULL;
         CGroupContext *cc = NULL;
-        char **rule;
         int cld_code, r;
 
         assert_se(u = unit_new(m, sizeof(Service)));