mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate size of array at compile time. * src/array_fun.h * test/BitfieldManTest.cc * test/BtPortMessageTest.cc * test/DHTRoutingTableDeserializerTest.cc * test/DHTRoutingTableSerializerTest.cc * test/DownloadHelperTest.cc * test/LongestSequencePieceSelectorTest.cc * test/MultiDiskAdaptorTest.cc * test/OptionParserTest.cc * test/PriorityPieceSelectorTest.cc * test/array_funTest.cc
This commit is contained in:
parent
f15d22b619
commit
886f8ee58e
12 changed files with 41 additions and 31 deletions
|
@ -37,7 +37,7 @@ void DHTRoutingTableDeserializerTest::testDeserialize()
|
|||
SharedHandle<DHTNode> localNode(new DHTNode());
|
||||
|
||||
SharedHandle<DHTNode> nodesSrc[3];
|
||||
for(size_t i = 0; i < arrayLength(nodesSrc); ++i) {
|
||||
for(size_t i = 0; i < A2_ARRAY_LEN(nodesSrc); ++i) {
|
||||
nodesSrc[i].reset(new DHTNode());
|
||||
nodesSrc[i]->setIPAddress("192.168.0."+util::uitos(i+1));
|
||||
nodesSrc[i]->setPort(6881+i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue