X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Ffreenet%2Fiindexrequester.h;h=7f0276303900eb61d298f7e08b23d21875f1a9ba;hb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;hp=8f9e4e51cca4331a1521d19d99d1fc027738a296;hpb=868c533e84b3c81b6604b45b84efa32073aa20b4;p=fms.git diff --git a/include/freenet/iindexrequester.h b/include/freenet/iindexrequester.h index 8f9e4e5..7f02763 100644 --- a/include/freenet/iindexrequester.h +++ b/include/freenet/iindexrequester.h @@ -127,7 +127,7 @@ void IIndexRequester::InitializeIIndexRequester() m_maxrequests=-1; m_fcpuniquename=""; - Option::instance()->Get("MessageBase",m_messagebase); + Option::Instance()->Get("MessageBase",m_messagebase); m_tempdate.SetToGMTime(); } @@ -135,7 +135,7 @@ template void IIndexRequester::Process() { // max is the smaller of the config value or the total number of ids we will request from - long max=m_maxrequests>m_ids.size() ? m_ids.size() : m_maxrequests; + typename std::map::size_type max=m_maxrequests>m_ids.size() ? m_ids.size() : m_maxrequests; // try to keep up to max requests going if(m_requesting.size()