From 3f861e8dd904971af74f8513539b42fa072125aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 20 Oct 2022 12:43:35 +0200 Subject: [PATCH] test-local-addresses: inline iterator variable --- src/test/test-local-addresses.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/test-local-addresses.c b/src/test/test-local-addresses.c index 732d47a3f92..449192f0e0c 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); -- 2.47.3