From: Christian Grothoff Date: Wed, 27 Dec 2017 13:50:11 +0000 (+0100) Subject: beautify loop X-Git-Tag: gnunet-0.11.0rc0~76 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bbe64bb9304a1335f29895941f00228101f90297;p=oweals%2Fgnunet.git beautify loop --- 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);