[Tinyos-2-commits] CVS: tinyos-2.x/tos/system RoundRobinResourceQueueC.nc, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Thu Feb 8 09:49:24 PST 2007


Update of /cvsroot/tinyos/tinyos-2.x/tos/system
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3388

Modified Files:
	RoundRobinResourceQueueC.nc 
Log Message:
fix empty queue case


Index: RoundRobinResourceQueueC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/system/RoundRobinResourceQueueC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RoundRobinResourceQueueC.nc	12 Dec 2006 18:23:47 -0000	1.4
--- RoundRobinResourceQueueC.nc	8 Feb 2007 17:49:22 -0000	1.5
***************
*** 37,43 ****
  }
  implementation {
!   enum {NO_ENTRY = 0xFF};
  
!   uint8_t resQ[(size-1)/8 + 1];
    uint8_t last = 0;
  
--- 37,46 ----
  }
  implementation {
!   enum {
!     NO_ENTRY = 0xFF,
!     SIZE = size ? (size - 1) / 8 + 1 : 0
!   };
  
!   uint8_t resQ[SIZE];
    uint8_t last = 0;
  



More information about the Tinyos-2-commits mailing list