From 2762db8408dbc2032f0c253234cc382580d8fad3 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 17 Sep 2014 12:54:39 -0700 Subject: More work on control bus refactor... --- node/Node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index 36a199b9..2cc37749 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -777,7 +777,7 @@ void Node::status(ZT1_Node_Status *status) GatherPeerStatistics gps; gps.now = Utils::now(); gps.status = status; - _r->topology->eachPeer(gps); + _r->topology->eachPeer(gps); if (status->alivePeers > 0) { double dlsr = (double)status->directlyConnectedPeers / (double)status->alivePeers; @@ -793,7 +793,7 @@ void Node::status(ZT1_Node_Status *status) struct CollectPeersAndPaths { std::vector< std::pair< SharedPtr,std::vector > > data; - inline void operator()(Topology &t,const SharedPtr &p) { data.push_back(std::pair< SharedPtr,std::vector >(p,p->paths())); } + inline void operator()(Topology &t,const SharedPtr &p) { this->data.push_back(std::pair< SharedPtr,std::vector >(p,p->paths())); } }; struct SortPeersAndPathsInAscendingAddressOrder { @@ -806,7 +806,7 @@ ZT1_Node_PeerList *Node::listPeers() RuntimeEnvironment *_r = (RuntimeEnvironment *)&(impl->renv); CollectPeersAndPaths pp; - _r->topology->eachPeer(pp); + _r->topology->eachPeer(pp); std::sort(pp.data.begin(),pp.data.end(),SortPeersAndPathsInAscendingAddressOrder()); unsigned int returnBufSize = sizeof(ZT1_Node_PeerList); -- cgit v1.2.3