From bbe64bb9304a1335f29895941f00228101f90297 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 27 Dec 2017 14:50:11 +0100 Subject: [PATCH] beautify loop --- src/arm/gnunet-service-arm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 2db2ba0d1..bf5982d10 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c @@ -1915,7 +1915,6 @@ setup_service (void *cls, struct sockaddr **addrs; socklen_t *addr_lens; int ret; - unsigned int i; if (0 == strcasecmp (section, "arm")) @@ -2027,7 +2026,7 @@ setup_service (void *cls, &addr_lens))) return; /* this will free (or capture) addrs[i] */ - for (i = 0; i < ret; i++) + for (unsigned int i = 0; i < ret; i++) create_listen_socket (addrs[i], addr_lens[i], sl); -- 2.25.1