X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fsdk%2Fcpp%2Fsf%2Fpacketbuffer.h;h=383859459a63aa47d7685199bf7ff3bd57b321f4;hb=f2ec0361a8796350bde71e0611e16be06ba22be0;hp=8fef2696ea46fd16f9be2bd03e091245924be5e8;hpb=ab3fe89b185c317159f4d206b9e51f50d494bec5;p=tinyos-2.x.git diff --git a/support/sdk/cpp/sf/packetbuffer.h b/support/sdk/cpp/sf/packetbuffer.h index 8fef2696..38385945 100644 --- a/support/sdk/cpp/sf/packetbuffer.h +++ b/support/sdk/cpp/sf/packetbuffer.h @@ -37,7 +37,7 @@ #include #include "sfpacket.h" -//#define DEBUG_PACKETBUFFER +// #define DEBUG_PACKETBUFFER #undef DEBUG #ifdef DEBUG_PACKETBUFFER @@ -51,7 +51,7 @@ class PacketBuffer { protected: - static const int cMaxBufferSize = 25; + static const unsigned cMaxBufferSize = 25; typedef std::list container_t; @@ -66,8 +66,6 @@ protected: pthread_cond_t notfull; // actual buffer container_t container; - // number of packets in buffer - int size; } sharedBuffer_t; sharedBuffer_t buffer;