diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
| commit | 032c7c28083e17bdcfd763b3cf81447b06a07978 (patch) | |
| tree | e5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/BtInterestedMessage.cc | |
| parent | ca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff) | |
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/BtInterestedMessage.cc')
| -rw-r--r-- | src/BtInterestedMessage.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BtInterestedMessage.cc b/src/BtInterestedMessage.cc index f6f824a1..f4292de5 100644 --- a/src/BtInterestedMessage.cc +++ b/src/BtInterestedMessage.cc @@ -40,11 +40,11 @@ namespace aria2 { -BtInterestedMessageHandle BtInterestedMessage::create(const unsigned char* data, int32_t dataLength) { +BtInterestedMessageHandle BtInterestedMessage::create(const unsigned char* data, size_t dataLength) { if(dataLength != 1) { throw new DlAbortEx(EX_INVALID_PAYLOAD_SIZE, "interested", dataLength, 1); } - int8_t id = PeerMessageUtil::getId(data); + uint8_t id = PeerMessageUtil::getId(data); if(id != ID) { throw new DlAbortEx(EX_INVALID_BT_MESSAGE_ID, id, "interested", ID); } @@ -60,7 +60,7 @@ bool BtInterestedMessage::sendPredicate() const { return !peer->amInterested(); } -int32_t BtInterestedMessage::MESSAGE_LENGTH = 5; +size_t BtInterestedMessage::MESSAGE_LENGTH = 5; const unsigned char* BtInterestedMessage::getMessage() { if(!msg) { @@ -75,7 +75,7 @@ const unsigned char* BtInterestedMessage::getMessage() { return msg; } -int32_t BtInterestedMessage::getMessageLength() { +size_t BtInterestedMessage::getMessageLength() { return MESSAGE_LENGTH; } |
