From e8f11cc3a54c83972c340686007ad0346daea806 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sun, 16 Feb 2014 11:46:47 -0600 Subject: [PATCH] Fix unintended renaming --- libktorrent/kademlia/rpcmsg.cpp | 6 +++--- libktorrent/kademlia/rpcmsg.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libktorrent/kademlia/rpcmsg.cpp b/libktorrent/kademlia/rpcmsg.cpp index 90d2484..b5b2b7d 100644 --- a/libktorrent/kademlia/rpcmsg.cpp +++ b/libktorrent/kademlia/rpcmsg.cpp @@ -252,7 +252,7 @@ namespace dht //////////////////////////////// - PingReq::PingReq(const Key & id) : MsgBase(0xFF,PING,RETQ_MSG,id) + PingReq::PingReq(const Key & id) : MsgBase(0xFF,PING,REQ_MSG,id) { } @@ -289,7 +289,7 @@ namespace dht //////////////////////////////// FindNodeReq::FindNodeReq(const Key & id,const Key & target) - : MsgBase(0xFF,FIND_NODE,RETQ_MSG,id),target(target) + : MsgBase(0xFF,FIND_NODE,REQ_MSG,id),target(target) {} FindNodeReq::~FindNodeReq() @@ -328,7 +328,7 @@ namespace dht //////////////////////////////// GetPeersReq::GetPeersReq(const Key & id,const Key & info_hash) - : MsgBase(0xFF,GET_PEERS,RETQ_MSG,id),info_hash(info_hash) + : MsgBase(0xFF,GET_PEERS,REQ_MSG,id),info_hash(info_hash) {} GetPeersReq::~GetPeersReq() diff --git a/libktorrent/kademlia/rpcmsg.h b/libktorrent/kademlia/rpcmsg.h index 58f6891..acdae14 100644 --- a/libktorrent/kademlia/rpcmsg.h +++ b/libktorrent/kademlia/rpcmsg.h @@ -40,7 +40,7 @@ namespace dht enum Type { - RETQ_MSG, + REQ_MSG, RSP_MSG, ERR_MSG, INVALID