PC-Lint warnings fixed:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 19 Dec 2011 10:02:43 +0000 (08:02 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Mon, 19 Dec 2011 10:02:43 +0000 (08:02 -0200)
- Info 732: Loss of sign (arg. no. 1) (int to unsigned int)

src/icmp/icmpdestinationunreachablemessage.cpp
src/icmp/icmpechoreplymessage.cpp
src/icmp/icmpechorequestmessage.cpp

index 6a6d9f8..ac3e0e6 100644 (file)
@@ -6,13 +6,15 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmpdestinationunreachablemessage.h"
 
+#include <cstddef>
+
 using namespace std;
 
 //-----------------------------------------------------------------------------
 // IcmpDestinationUnreachableMessage
 //-----------------------------------------------------------------------------
 
-static const int MessageSizeInBytes = 44;
+static const size_t MessageSizeInBytes = 44;
 
 IcmpDestinationUnreachableMessage::IcmpDestinationUnreachableMessage() :
     Payload( MessageSizeInBytes )
index 63c90c2..19719c8 100644 (file)
@@ -6,13 +6,15 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmpechoreplymessage.h"
 
+#include <cstddef>
+
 using namespace std;
 
 //-----------------------------------------------------------------------------
 // IcmpEchoReplyMessage
 //-----------------------------------------------------------------------------
 
-static const int MessageSizeInBytes = 8;
+static const size_t MessageSizeInBytes = 8;
 
 IcmpEchoReplyMessage::IcmpEchoReplyMessage() :
     Payload( MessageSizeInBytes )
index 7f0ffed..28bf382 100644 (file)
@@ -6,13 +6,15 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmpechorequestmessage.h"
 
+#include <cstddef>
+
 using namespace std;
 
 //-----------------------------------------------------------------------------
 // IcmpEchoRequestMessage
 //-----------------------------------------------------------------------------
 
-static const int MessageSizeInBytes = 8;
+static const size_t MessageSizeInBytes = 8;
 
 IcmpEchoRequestMessage::IcmpEchoRequestMessage() :
     Payload( MessageSizeInBytes )