1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

test-local-addresses: inline iterator variable

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-10-20 12:43:35 +02:00
parent 983e637872
commit 3f861e8dd9

View File

@ -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);