~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to test/DHTBucketTest.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
 
290
290
}
291
291
 
292
 
static void createID(unsigned char* id, unsigned char firstChar, unsigned char lastChar)
 
292
namespace {
 
293
void createID(unsigned char* id, unsigned char firstChar, unsigned char lastChar)
293
294
{
294
295
  memset(id, 0, DHT_ID_LENGTH);
295
296
  id[0] = firstChar;
296
297
  id[DHT_ID_LENGTH-1] = lastChar;
297
298
}
 
299
} // namespace
298
300
 
299
301
void DHTBucketTest::testAddNode()
300
302
{