From 12988e5282ef52a2806cbaca9f4074698f35e399 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 7 Dec 2011 22:57:34 +0900 Subject: Replaced uint64_t with off_t or int64_t. Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t. --- src/HttpResponseCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HttpResponseCommand.cc') diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index f9242591..70af2e89 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -180,7 +180,7 @@ bool HttpResponseCommand::executeInternal() int statusCode = httpResponse->getStatusCode(); if(statusCode == 304) { - uint64_t totalLength = httpResponse->getEntityLength(); + off_t totalLength = httpResponse->getEntityLength(); getFileEntry()->setLength(totalLength); getRequestGroup()->initPieceStorage(); getPieceStorage()->markAllPiecesDone(); @@ -245,7 +245,7 @@ bool HttpResponseCommand::executeInternal() } if(!getPieceStorage()) { util::removeMetalinkContentTypes(getRequestGroup()); - uint64_t totalLength = httpResponse->getEntityLength(); + off_t totalLength = httpResponse->getEntityLength(); getFileEntry()->setLength(totalLength); if(getFileEntry()->getPath().empty()) { getFileEntry()->setPath -- cgit