Browse Source

trivial editorial/style fixes

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac347@3687 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 14 years ago
parent
commit
c2db5f7eea
3 changed files with 7 additions and 12 deletions
  1. 1 3
      src/bin/auth/asio_link.cc
  2. 4 8
      src/bin/auth/stats.cc
  3. 2 1
      src/bin/auth/tests/asio_link_unittest.cc

+ 1 - 3
src/bin/auth/asio_link.cc

@@ -735,9 +735,7 @@ IntervalTimer::~IntervalTimer() {
 }
 
 bool
-IntervalTimer::setupTimer(const Callback& cbfunc,
-                                const uint32_t interval)
-{
+IntervalTimer::setupTimer(const Callback& cbfunc, const uint32_t interval) {
     return (impl_->setupTimer(cbfunc, interval));
 }
 }

+ 4 - 8
src/bin/auth/stats.cc

@@ -57,20 +57,17 @@ CounterImpl::~CounterImpl() {
 }
 
 void
-CounterImpl::inc(const Counter::CounterType type)
-{
+CounterImpl::inc(const Counter::CounterType type) {
     ++counters_->at(type);
 }
 
 asio_link::IntervalTimer::Callback
-CounterImpl::getCallback()
-{
+CounterImpl::getCallback() {
     return (boost::bind(&CounterImpl::sendStats, this));
 }
 
 void
-CounterImpl::sendStats()
-{
+CounterImpl::sendStats() {
     if (stats_session_ == NULL) {
         if (verbose_mode_) {
             std::cerr << "[b10-auth] "
@@ -130,8 +127,7 @@ Counter::~Counter() {
 }
 
 asio_link::IntervalTimer::Callback
-Counter::getCallback()
-{
+Counter::getCallback() {
     return (impl_->getCallback());
 }
 

+ 2 - 1
src/bin/auth/tests/asio_link_unittest.cc

@@ -382,7 +382,8 @@ TEST_F(ASIOLinkTest, startIntervalTimer) {
     // Create asio_link::IntervalTimer and setup.
     // Then run IOService and test if the callback function is called.
     setIOService(false, false);
-    asio_link::IntervalTimer *itimer = new asio_link::IntervalTimer(io_service_->get_io_service());
+    asio_link::IntervalTimer* itimer =
+        new asio_link::IntervalTimer(io_service_->get_io_service());
     doTimerTest(itimer);
     delete itimer;
 }