[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/serial SerialActiveMessageP.nc, 1.6, 1.7

Phil Levis scipio at users.sourceforge.net
Tue Feb 19 13:33:15 PST 2008


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

Modified Files:
	SerialActiveMessageP.nc 
Log Message:
Correct clear() implementation.


Index: SerialActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/serial/SerialActiveMessageP.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** SerialActiveMessageP.nc	13 Sep 2007 23:10:19 -0000	1.6
--- SerialActiveMessageP.nc	19 Feb 2008 21:33:13 -0000	1.7
***************
*** 96,99 ****
--- 96,100 ----
  
    command void Packet.clear(message_t* msg) {
+     memset(getHeader(msg), 0, sizeof(serial_header_t));
      return;
    }



More information about the Tinyos-2-commits mailing list