From: Guilherme Maciel Ferreira Date: Sat, 24 Dec 2011 12:42:43 +0000 (-0200) Subject: PC-Lint warnings fixed: X-Git-Tag: v1.3~25 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=010b85192c60c3a40d93ab4f0527fa5ee8e7f3fd;p=pingcheck PC-Lint warnings fixed: - Info 1736: Redundant access specifier (private); --- 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?)