beautify loop
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Dec 2017 13:50:11 +0000 (14:50 +0100)
committerChristian Grothoff <christian@grothoff.org>
Wed, 27 Dec 2017 13:50:11 +0000 (14:50 +0100)
src/arm/gnunet-service-arm.c

index 2db2ba0d1773ef88d680e09c4c69cef1a74101d0..bf5982d10c2e274af03b85f0fd7bc63e8982196c 100644 (file)
@@ -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);