]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/tty-ask-password-agent/tty-ask-password-agent.c
tree-wide: define iterator inside of the macro
[thirdparty/systemd.git] / src / tty-ask-password-agent / tty-ask-password-agent.c
index 87779a4dd6eda9a1425cf4550fb35f4ccc1b2fc8..932f6e18b233689ffc7fc2ac141031fe6f4a1a2a 100644 (file)
@@ -583,7 +583,6 @@ static void terminate_agents(Set *pids) {
         struct timespec ts;
         siginfo_t status = {};
         sigset_t set;
-        Iterator i;
         void *p;
         int r, signum;
 
@@ -591,7 +590,7 @@ static void terminate_agents(Set *pids) {
          * Request termination of the remaining processes as those
          * are not required anymore.
          */
-        SET_FOREACH(p, pids, i)
+        SET_FOREACH(p, pids)
                 (void) kill(PTR_TO_PID(p), SIGTERM);
 
         /*
@@ -625,7 +624,7 @@ static void terminate_agents(Set *pids) {
         /*
          * Kill hanging processes.
          */
-        SET_FOREACH(p, pids, i) {
+        SET_FOREACH(p, pids) {
                 log_warning("Failed to terminate child %d, killing it", PTR_TO_PID(p));
                 (void) kill(PTR_TO_PID(p), SIGKILL);
         }