From: Guilherme Maciel Ferreira Date: Mon, 19 Dec 2011 10:02:43 +0000 (-0200) Subject: PC-Lint warnings fixed: X-Git-Tag: v1.3~37 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e12ac51f45a626bcf4e32a40aabd90ab9a972e08;p=pingcheck PC-Lint warnings fixed: - Info 732: Loss of sign (arg. no. 1) (int to unsigned int) --- diff --git a/src/icmp/icmpdestinationunreachablemessage.cpp b/src/icmp/icmpdestinationunreachablemessage.cpp index 6a6d9f8..ac3e0e6 100644 --- a/src/icmp/icmpdestinationunreachablemessage.cpp +++ b/src/icmp/icmpdestinationunreachablemessage.cpp @@ -6,13 +6,15 @@ // http://www.boost.org/LICENSE_1_0.txt) #include "icmp/icmpdestinationunreachablemessage.h" +#include + using namespace std; //----------------------------------------------------------------------------- // IcmpDestinationUnreachableMessage //----------------------------------------------------------------------------- -static const int MessageSizeInBytes = 44; +static const size_t MessageSizeInBytes = 44; IcmpDestinationUnreachableMessage::IcmpDestinationUnreachableMessage() : Payload( MessageSizeInBytes ) diff --git a/src/icmp/icmpechoreplymessage.cpp b/src/icmp/icmpechoreplymessage.cpp index 63c90c2..19719c8 100644 --- a/src/icmp/icmpechoreplymessage.cpp +++ b/src/icmp/icmpechoreplymessage.cpp @@ -6,13 +6,15 @@ // http://www.boost.org/LICENSE_1_0.txt) #include "icmp/icmpechoreplymessage.h" +#include + using namespace std; //----------------------------------------------------------------------------- // IcmpEchoReplyMessage //----------------------------------------------------------------------------- -static const int MessageSizeInBytes = 8; +static const size_t MessageSizeInBytes = 8; IcmpEchoReplyMessage::IcmpEchoReplyMessage() : Payload( MessageSizeInBytes ) diff --git a/src/icmp/icmpechorequestmessage.cpp b/src/icmp/icmpechorequestmessage.cpp index 7f0ffed..28bf382 100644 --- a/src/icmp/icmpechorequestmessage.cpp +++ b/src/icmp/icmpechorequestmessage.cpp @@ -6,13 +6,15 @@ // http://www.boost.org/LICENSE_1_0.txt) #include "icmp/icmpechorequestmessage.h" +#include + using namespace std; //----------------------------------------------------------------------------- // IcmpEchoRequestMessage //----------------------------------------------------------------------------- -static const int MessageSizeInBytes = 8; +static const size_t MessageSizeInBytes = 8; IcmpEchoRequestMessage::IcmpEchoRequestMessage() : Payload( MessageSizeInBytes )