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/BtNotInterestedMessage.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/BtNotInterestedMessage.cc')
| -rw-r--r-- | src/BtNotInterestedMessage.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BtNotInterestedMessage.cc b/src/BtNotInterestedMessage.cc index 47794312..1c79d1de 100644 --- a/src/BtNotInterestedMessage.cc +++ b/src/BtNotInterestedMessage.cc @@ -40,11 +40,11 @@ namespace aria2 { -BtNotInterestedMessageHandle BtNotInterestedMessage::create(const unsigned char* data, int32_t dataLength) { +BtNotInterestedMessageHandle BtNotInterestedMessage::create(const unsigned char* data, size_t dataLength) { if(dataLength != 1) { throw new DlAbortEx(EX_INVALID_PAYLOAD_SIZE, "not 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, "not interested", ID); } @@ -60,7 +60,7 @@ bool BtNotInterestedMessage::sendPredicate() const { return peer->amInterested(); } -int32_t BtNotInterestedMessage::MESSAGE_LENGTH = 5; +size_t BtNotInterestedMessage::MESSAGE_LENGTH = 5; const unsigned char* BtNotInterestedMessage::getMessage() { if(!msg) { @@ -75,7 +75,7 @@ const unsigned char* BtNotInterestedMessage::getMessage() { return msg; } -int32_t BtNotInterestedMessage::getMessageLength() { +size_t BtNotInterestedMessage::getMessageLength() { return MESSAGE_LENGTH; } |
