summaryrefslogtreecommitdiff
path: root/src/PeerInteractionCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-07-21 08:56:16 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-07-21 08:56:16 +0000
commit6574e44f886740273676b6d73ef754385a36197f (patch)
treec13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/PeerInteractionCommand.cc
parentcd6b6e359135f88afffbaa31c126489aa9813571 (diff)
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to int64_t
Diffstat (limited to 'src/PeerInteractionCommand.cc')
-rw-r--r--src/PeerInteractionCommand.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PeerInteractionCommand.cc b/src/PeerInteractionCommand.cc
index 9ed21cf7..522b02ab 100644
--- a/src/PeerInteractionCommand.cc
+++ b/src/PeerInteractionCommand.cc
@@ -49,12 +49,12 @@
#include "CUIDCounter.h"
#include <algorithm>
-PeerInteractionCommand::PeerInteractionCommand(int cuid,
+PeerInteractionCommand::PeerInteractionCommand(int32_t cuid,
const PeerHandle& p,
TorrentDownloadEngine* e,
const BtContextHandle& btContext,
const SocketHandle& s,
- int sequence)
+ Seq sequence)
:PeerAbstractCommand(cuid, p, e, btContext, s),
sequence(sequence),
btInteractive(0),
@@ -199,7 +199,7 @@ bool PeerInteractionCommand::executeInternal() {
}
// TODO this method removed when PeerBalancerCommand is implemented
-bool PeerInteractionCommand::prepareForNextPeer(int wait) {
+bool PeerInteractionCommand::prepareForNextPeer(int32_t wait) {
if(peerStorage->isPeerAvailable() && btRuntime->lessThanEqMinPeer()) {
PeerHandle peer = peerStorage->getUnusedPeer();
peer->cuid = CUIDCounterSingletonHolder::instance()->newID();
@@ -213,7 +213,7 @@ bool PeerInteractionCommand::prepareForNextPeer(int wait) {
return true;
}
-bool PeerInteractionCommand::prepareForRetry(int wait) {
+bool PeerInteractionCommand::prepareForRetry(int32_t wait) {
e->commands.push_back(this);
return false;
}