patches/aria2-06-countif.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 84 1fed9192ba27
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

--- aria2-0.9.0/src/AnnounceList.cc.orig6	2006-12-12 14:58:28.452570000 +0800
+++ aria2-0.9.0/src/AnnounceList.cc	2006-12-13 17:49:00.868706000 +0800
@@ -177,11 +177,15 @@
 };
 
 int AnnounceList::countStoppedAllowedTier() const {
-  return count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier());
+  int result; 
+  count_if(tiers.begin(), tiers.end(), FindStoppedAllowedTier(), result);
+  return result;
 }
 
 int AnnounceList::countCompletedAllowedTier() const {
-  return count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier());
+  int result; 
+  count_if(tiers.begin(), tiers.end(), FindCompletedAllowedTier(), result);
+  return result;
 }
 
 void AnnounceList::setCurrentTier(const AnnounceTiers::iterator& itr) {