From: arno Date: Tue, 20 Oct 2009 12:22:52 +0000 (+0000) Subject: - Small Linux fix. X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=e04fe127a420787c1548255d3162a20fcc3368ab;p=swift-upb.git - Small Linux fix. git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@460 e16421f0-f15b-0410-abcd-98678b794739 --- diff --git a/transfer.cpp b/transfer.cpp index bb6cdb7..1bdcd64 100644 --- a/transfer.cpp +++ b/transfer.cpp @@ -131,7 +131,7 @@ void FileTransfer::SetSize (size_t bytes) { // peaks/root must be already set } if (hashmaphandle_ == NULL || hashes_ == NULL) #else - hashes_ = (Sha1Hash*) mmap (NULL, expected_size, PROT_READ|PROT_WRITE, + hashes_ = (Sha1Hash*) mmap (NULL, expected_size_, PROT_READ|PROT_WRITE, MAP_SHARED, hashfd_, 0); if (hashes_==MAP_FAILED) #endif