summaryrefslogtreecommitdiff
path: root/src/dev/etherpkt.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/etherpkt.hh')
-rw-r--r--src/dev/etherpkt.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/etherpkt.hh b/src/dev/etherpkt.hh
index b7d33887b..c71d9cc30 100644
--- a/src/dev/etherpkt.hh
+++ b/src/dev/etherpkt.hh
@@ -58,14 +58,14 @@ class EthPacketData : public RefCounted
/*
* Length of the current packet
*/
- int length;
+ unsigned length;
public:
EthPacketData()
: data(NULL), length(0)
{ }
- explicit EthPacketData(size_t size)
+ explicit EthPacketData(unsigned size)
: data(new uint8_t[size]), length(0)
{ }