summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-21 23:16:58 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-21 23:16:58 +0900
commit5892291c55a664bc7ab5e260146bb86063b0a790 (patch)
tree37870cdd02795547eb5f9ac1658892643169a202 /src
parentaaab5bbc746b22961ffb43e081164fce65ca5dec (diff)
clang-format-3.6
Diffstat (limited to 'src')
-rw-r--r--src/DHTRoutingTable.cc6
-rw-r--r--src/LibuvEventPoll.cc2
-rw-r--r--src/UDPTrackerRequest.h2
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<std::shared_ptr<DHTBucket> >::const_iterator itr =
buckets_.begin(); itr != buckets_.end(); ++itr) {
cerr << "prefix = " << (*itr)->getPrefixLength() << ", "
<< "nodes = " << (*itr)->countNode() << endl;
}
- */}
+ */
+}
std::shared_ptr<DHTBucket>
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<UDPTrackerReply> reply;
- void *user_data;
+ void* user_data;
UDPTrackerRequest();
};