Missing header files and identation
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 1 Aug 2011 00:15:26 +0000 (21:15 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 1 Aug 2011 00:15:26 +0000 (21:15 -0300)
src/icmp/icmppinger.cpp

index 9a1d575..6440660 100644 (file)
@@ -6,6 +6,9 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmppinger.h"
 
+#include <errno.h>
+#include <sys/socket.h>
+
 #include <istream>
 #include <ostream>
 
@@ -63,7 +66,7 @@ IcmpPinger::IcmpPinger(
          !select_source_network_interface( source_network_interface ) )
     {
         GlobalLogger.error() << "Error: could not bind the socket "
-                "with the local interface." << ::strerror( errno )  << endl;
+            << "with the local interface. " << ::strerror( errno )  << endl;
     }
 
     // Create "unique" identifier
@@ -379,7 +382,7 @@ bool IcmpPinger::select_source_network_interface(
     if ( ret == -1 )
     {
         GlobalLogger.error() << "Error: could not bind pinger to interface "
-                << source_network_interface << endl;
+            << source_network_interface << endl;
         return false;
     }