]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add some braces to make arma happy
authorNick Mathewson <nickm@torproject.org>
Wed, 18 Aug 2010 15:28:51 +0000 (11:28 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 18 Aug 2010 15:28:51 +0000 (11:28 -0400)
src/or/dirserv.c

index 7b469ce54b2dec2c33f1eed0d8673c0211689b84..4d4d8a22c7c4a9c957b4c63993366141ce2c8a82 100644 (file)
@@ -935,21 +935,22 @@ dirserv_set_router_is_running(routerinfo_t *router, time_t now)
    */
   int answer;
 
-  if (router_is_me(router))
+  if (router_is_me(router)) {
     /* We always know if we are down ourselves. */
     answer = ! we_are_hibernating();
-  else if (router->is_hibernating &&
-           router->cache_info.published_on > router->last_reachable)
+  else if (router->is_hibernating &&
+             router->cache_info.published_on > router->last_reachable) {
     /* A hibernating router is down unless we (somehow) had contact with it
      * since it declared itself to be hibernating. */
     answer = 0;
-  else if (get_options()->AssumeReachable)
+  } else if (get_options()->AssumeReachable) {
     /* If AssumeReachable, everybody is up! */
     answer = 1;
-  else
+  } else {
     /* Otherwise, a router counts as up if we found it reachable in the last
        REACHABLE_TIMEOUT seconds. */
     answer = (now < router->last_reachable + REACHABLE_TIMEOUT);
+  }
 
   if (!answer && running_long_enough_to_decide_unreachable()) {
     /* not considered reachable. tell rephist. */