From 6a179452878afa6571943a3a9cebd3ac60b494de Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Sun, 21 Aug 2011 12:48:26 -0300 Subject: [PATCH] Changed the type of the header size variables from int to size_t, so it matches the type where it is used --- src/ip/ipv4header.cpp | 2 +- src/tcp/tcpheader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) -- 1.7.1