From 5892291c55a664bc7ab5e260146bb86063b0a790 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 21 Jan 2016 23:16:58 +0900 Subject: [PATCH] clang-format-3.6 --- src/DHTRoutingTable.cc | 6 ++++-- src/LibuvEventPoll.cc | 2 +- src/UDPTrackerRequest.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/DHTRoutingTable.cc b/src/DHTRoutingTable.cc index 536b676b..72bd9fca 100644 --- a/src/DHTRoutingTable.cc +++ b/src/DHTRoutingTable.cc @@ -119,13 +119,15 @@ void DHTRoutingTable::getClosestKNodes( int DHTRoutingTable::getNumBucket() const { return numBucket_; } void DHTRoutingTable::showBuckets() const -{ /* +{ + /* for(std::deque >::const_iterator itr = buckets_.begin(); itr != buckets_.end(); ++itr) { cerr << "prefix = " << (*itr)->getPrefixLength() << ", " << "nodes = " << (*itr)->countNode() << endl; } - */} + */ +} std::shared_ptr DHTRoutingTable::getBucketFor(const unsigned char* nodeID) const diff --git a/src/LibuvEventPoll.cc b/src/LibuvEventPoll.cc index d5d627a2..2b6b9896 100644 --- a/src/LibuvEventPoll.cc +++ b/src/LibuvEventPoll.cc @@ -76,7 +76,7 @@ static void timer_callback(uv_timer_t* handle, int status) static void timer_callback(uv_timer_t* handle) { timer_callback(handle, 0); } #else // !defined(UV_VERSION_MINOR) || (UV_VERSION_MAJOR == 0 && - // UV_VERSION_MINOR <= 10) +// UV_VERSION_MINOR <= 10) static void timer_callback(uv_timer_t* handle) { uv_stop(handle->loop); } diff --git a/src/UDPTrackerRequest.h b/src/UDPTrackerRequest.h index f61f228c..3ee0eee8 100644 --- a/src/UDPTrackerRequest.h +++ b/src/UDPTrackerRequest.h @@ -101,7 +101,7 @@ struct UDPTrackerRequest { Timer dispatched; int failCount; std::shared_ptr reply; - void *user_data; + void* user_data; UDPTrackerRequest(); };