]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/cpp/sf/packetbuffer.h
- pass errno across interface
[tinyos-2.x.git] / support / sdk / cpp / sf / packetbuffer.h
index 8fef2696ea46fd16f9be2bd03e091245924be5e8..383859459a63aa47d7685199bf7ff3bd57b321f4 100644 (file)
@@ -37,7 +37,7 @@
 #include <list>
 #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<SFPacket> 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;