summaryrefslogtreecommitdiff
path: root/src/PeerReceiveHandshakeCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
commit032c7c28083e17bdcfd763b3cf81447b06a07978 (patch)
treee5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/PeerReceiveHandshakeCommand.cc
parentca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff)
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/PeerReceiveHandshakeCommand.cc')
-rw-r--r--src/PeerReceiveHandshakeCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PeerReceiveHandshakeCommand.cc b/src/PeerReceiveHandshakeCommand.cc
index 55efe66d..b37e5aa1 100644
--- a/src/PeerReceiveHandshakeCommand.cc
+++ b/src/PeerReceiveHandshakeCommand.cc
@@ -67,7 +67,7 @@ PeerReceiveHandshakeCommand::PeerReceiveHandshakeCommand(int32_t cuid,
if(_peerConnection.isNull()) {
_peerConnection = new PeerConnection(cuid, socket, e->option);
}
- int32_t maxDownloadSpeed = e->option->getAsInt(PREF_MAX_DOWNLOAD_LIMIT);
+ unsigned int maxDownloadSpeed = e->option->getAsInt(PREF_MAX_DOWNLOAD_LIMIT);
if(maxDownloadSpeed > 0) {
_thresholdSpeed = std::min(maxDownloadSpeed, _thresholdSpeed);
}
@@ -83,7 +83,7 @@ bool PeerReceiveHandshakeCommand::exitBeforeExecute()
bool PeerReceiveHandshakeCommand::executeInternal()
{
unsigned char data[BtHandshakeMessage::MESSAGE_LENGTH];
- int32_t dataLength = BtHandshakeMessage::MESSAGE_LENGTH;
+ size_t dataLength = BtHandshakeMessage::MESSAGE_LENGTH;
// ignore return value. The received data is kept in PeerConnection object
// because of peek = true.
_peerConnection->receiveHandshake(data, dataLength, true);