[tor-commits] [tor/master] c99 style in loop
    nickm at torproject.org 
    nickm at torproject.org
       
    Tue Sep  4 15:05:03 UTC 2018
    
    
  
commit 1e71e2c1045377b85d38760e257dd9c57c959c9f
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Sep 4 11:04:55 2018 -0400
    c99 style in loop
---
 src/feature/api/tor_api.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/feature/api/tor_api.c b/src/feature/api/tor_api.c
index efc4fdf8d..c9f4f8707 100644
--- a/src/feature/api/tor_api.c
+++ b/src/feature/api/tor_api.c
@@ -124,8 +124,7 @@ tor_main_configuration_free(tor_main_configuration_t *cfg)
   if (cfg == NULL)
     return;
   if (cfg->argv_owned) {
-    int i;
-    for (i = 0; i < cfg->argc_owned; ++i) {
+    for (int i = 0; i < cfg->argc_owned; ++i) {
       raw_free(cfg->argv_owned[i]);
     }
     raw_free(cfg->argv_owned);
    
    
More information about the tor-commits
mailing list