Skip to content

Commit 3f861e8

Browse files
committed
test-local-addresses: inline iterator variable
1 parent 983e637 commit 3f861e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/test-local-addresses.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
#include "tests.h"
1010

1111
static void print_local_addresses(struct local_address *a, unsigned n) {
12-
unsigned i;
13-
14-
for (i = 0; i < n; i++) {
12+
for (unsigned i = 0; i < n; i++) {
1513
_cleanup_free_ char *b = NULL;
1614

1715
assert_se(in_addr_to_string(a[i].family, &a[i].address, &b) >= 0);

0 commit comments

Comments
 (0)