Explorar o código

Fix more clang 3.6 warnings

Bryan Drewery %!s(int64=11) %!d(string=hai) anos
pai
achega
883a0275ed
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/botnet.cc

+ 2 - 2
src/botnet.cc

@@ -847,7 +847,7 @@ int bots_in_subtree(tand_t *bot)
   tand_t *b = NULL;
 
   for (b = tandbot; b; b = b->next) {
-    if (b->bot && (b->uplink == bot)) {
+    if (b->uplink == bot) {
       nr += bots_in_subtree(b);
     }
   }
@@ -866,7 +866,7 @@ int users_in_subtree(tand_t *bot)
     if (!strcasecmp(party[i].bot, bot->bot))
       nr++;
   for (b = tandbot; b; b = b->next)
-    if (b->bot && (b->uplink == bot))
+    if (b->uplink == bot)
       nr += users_in_subtree(b);
   return nr;
 }