[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/packet CC2420PacketC.nc, 1.3, 1.4
John Regehr
regehr at users.sourceforge.net
Mon Jun 2 21:43:05 PDT 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/packet
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv26075/packet
Modified Files:
CC2420PacketC.nc
Log Message:
safe tinyos annotations
Index: CC2420PacketC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/packet/CC2420PacketC.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** CC2420PacketC.nc 14 Sep 2007 00:15:57 -0000 1.3
--- CC2420PacketC.nc 3 Jun 2008 04:43:03 -0000 1.4
***************
*** 88,93 ****
/***************** CC2420PacketBody Commands ****************/
! async command cc2420_header_t *CC2420PacketBody.getHeader( message_t* msg ) {
! return (cc2420_header_t*)( msg->data - sizeof( cc2420_header_t ) );
}
--- 88,93 ----
/***************** CC2420PacketBody Commands ****************/
! async command cc2420_header_t * ONE CC2420PacketBody.getHeader( message_t* ONE msg ) {
! return TCAST(cc2420_header_t* ONE, (uint8_t *)msg + offsetof(message_t, data) - sizeof( cc2420_header_t ));
}
More information about the Tinyos-2-commits
mailing list