瀏覽代碼

Fix more clang 3.6 warnings

Bryan Drewery 11 年之前
父節點
當前提交
883a0275ed
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
 }