From: Guilherme Maciel Ferreira Date: Sun, 21 Aug 2011 15:48:26 +0000 (-0300) Subject: Changed the type of the header size variables from int to size_t, so it matches the... X-Git-Tag: v1.1^2~5 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=6a179452878afa6571943a3a9cebd3ac60b494de;p=pingcheck Changed the type of the header size variables from int to size_t, so it matches the type where it is used --- diff --git a/src/ip/ipv4header.cpp b/src/ip/ipv4header.cpp index da8f271..22bca50 100644 --- a/src/ip/ipv4header.cpp +++ b/src/ip/ipv4header.cpp @@ -15,7 +15,7 @@ using boost::asio::ip::address_v4; // Ipv4Header //----------------------------------------------------------------------------- -const int Ipv4HeaderSizeInBytes = 20; +static const size_t Ipv4HeaderSizeInBytes = 20; Ipv4Header::Ipv4Header() { diff --git a/src/tcp/tcpheader.cpp b/src/tcp/tcpheader.cpp index 4464efe..d114e20 100644 --- a/src/tcp/tcpheader.cpp +++ b/src/tcp/tcpheader.cpp @@ -33,7 +33,7 @@ using namespace std; // TcpHeader //----------------------------------------------------------------------------- -static const int TcpHeaderSizeInBytes = 20; +static const size_t TcpHeaderSizeInBytes = 20; TcpHeader::TcpHeader() : Payload( TcpHeaderSizeInBytes )