From 010b85192c60c3a40d93ab4f0527fa5ee8e7f3fd Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Sat, 24 Dec 2011 10:42:43 -0200 Subject: [PATCH] PC-Lint warnings fixed: - Info 1736: Redundant access specifier (private); --- src/host/pingscheduler.h | 9 ++++++++- src/link/linkstatusanalyzer.h | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/host/pingscheduler.h b/src/host/pingscheduler.h index dddd903..c58605f 100644 --- a/src/host/pingscheduler.h +++ b/src/host/pingscheduler.h @@ -67,6 +67,10 @@ public: void stop_pinging_thread(); private: + // + // Methods + // + bool start_pinging(); void stop_pinging(); @@ -84,7 +88,10 @@ private: void update_ping_interval(); void update_ping_elapsed_time(); -private: + // + // Attributes + // + /// Service object, which has the event loop boost::asio::io_service IoService; /// Name of the network device used to send the packets diff --git a/src/link/linkstatusanalyzer.h b/src/link/linkstatusanalyzer.h index 603ac5f..78aaed2 100644 --- a/src/link/linkstatusanalyzer.h +++ b/src/link/linkstatusanalyzer.h @@ -53,6 +53,10 @@ public: void notify_host_down( const std::string &host_address ); private: + // + // Types + // + enum LinkStatus { LinkStatus_Up, @@ -65,7 +69,10 @@ private: NotificationStatus_Reported }; -private: + // + // Methods + // + void add_host_up( const std::string &host_address ); void add_host_down( const std::string &host_address ); @@ -82,7 +89,10 @@ private: const LinkStatusAnalyzer::LinkStatus new_link_status ); -private: + // + // Attributes + // + /// the maximum amount of hosts which can be down before sound the alarm const int HostsDownLimit; /// list of hosts down (obvious isn't it?) -- 1.7.1