summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-20 12:43:35 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-20 12:57:31 +0200
commit3f861e8dd904971af74f8513539b42fa072125aa (patch)
treeaf556026d794ec3fe95037521d379f55735a9317
parent983e637872672c3a68d77180478db377060b6b9e (diff)
downloadsystemd-3f861e8dd904971af74f8513539b42fa072125aa.tar.gz
test-local-addresses: inline iterator variable
-rw-r--r--src/test/test-local-addresses.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test-local-addresses.c b/src/test/test-local-addresses.c
index 732d47a3f9..449192f0e0 100644
--- a/src/test/test-local-addresses.c
+++ b/src/test/test-local-addresses.c
@@ -9,9 +9,7 @@
#include "tests.h"
static void print_local_addresses(struct local_address *a, unsigned n) {
- unsigned i;
-
- for (i = 0; i < n; i++) {
+ for (unsigned i = 0; i < n; i++) {
_cleanup_free_ char *b = NULL;
assert_se(in_addr_to_string(a[i].family, &a[i].address, &b) >= 0);