PC-Lint warnings fixed:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 24 Dec 2011 12:42:43 +0000 (10:42 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Sat, 24 Dec 2011 12:42:43 +0000 (10:42 -0200)
- Info 1736: Redundant access specifier (private);

src/host/pingscheduler.h
src/link/linkstatusanalyzer.h

index dddd903..c58605f 100644 (file)
@@ -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
index 603ac5f..78aaed2 100644 (file)
@@ -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?)