diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-22 15:09:00 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-10-22 15:09:00 +0000 |
| commit | c6035b2e24410e7a576f83e92257f4bb26d593c9 (patch) | |
| tree | b6221953e8a95566aaeba33c527d70f810f51bed /src/IteratableChunkChecksumValidator.cc | |
| parent | 3349fe081156776aba058b90beebb68d4ee73e75 (diff) | |
2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Moved static functions in Util class to namespace util.
* src
* test
Diffstat (limited to 'src/IteratableChunkChecksumValidator.cc')
| -rw-r--r-- | src/IteratableChunkChecksumValidator.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IteratableChunkChecksumValidator.cc b/src/IteratableChunkChecksumValidator.cc index b58ab90d..98b1719e 100644 --- a/src/IteratableChunkChecksumValidator.cc +++ b/src/IteratableChunkChecksumValidator.cc @@ -88,7 +88,7 @@ void IteratableChunkChecksumValidator::validateChunk() } else { _logger->info(EX_INVALID_CHUNK_CHECKSUM, _currentIndex, - Util::itos(getCurrentOffset(), true).c_str(), + util::itos(getCurrentOffset(), true).c_str(), _dctx->getPieceHashes()[_currentIndex].c_str(), actualChecksum.c_str()); _bitfield->unsetBit(_currentIndex); @@ -122,7 +122,7 @@ void IteratableChunkChecksumValidator::init() { #ifdef HAVE_POSIX_MEMALIGN free(_buffer); - _buffer = (unsigned char*)Util::allocateAlignedMemory(ALIGNMENT, BUFSIZE); + _buffer = (unsigned char*)util::allocateAlignedMemory(ALIGNMENT, BUFSIZE); #else // !HAVE_POSIX_MEMALIGN delete [] _buffer; _buffer = new unsigned char[BUFSIZE]; @@ -166,7 +166,7 @@ std::string IteratableChunkChecksumValidator::digest(off_t offset, size_t length curoffset += r; woffset = 0; } - return Util::toHex((const unsigned char*)_ctx->digestFinal().c_str(), _ctx->digestLength()); + return util::toHex((const unsigned char*)_ctx->digestFinal().c_str(), _ctx->digestLength()); } |
