fixed alignment problem with rime/chameleon
This commit is contained in:
parent
b0d37c34e3
commit
fabe4393f7
2 changed files with 10 additions and 7 deletions
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rimeaddr.c,v 1.6 2007/08/30 14:39:17 matsutsuka Exp $
|
||||
* $Id: rimeaddr.c,v 1.7 2008/04/01 13:10:22 nifi Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -52,13 +52,15 @@ const rimeaddr_t rimeaddr_null = { { 0, 0 } };
|
|||
void
|
||||
rimeaddr_copy(rimeaddr_t *dest, const rimeaddr_t *src)
|
||||
{
|
||||
dest->u16[0] = src->u16[0];
|
||||
dest->u8[0] = src->u8[0];
|
||||
dest->u8[1] = src->u8[1];
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
rimeaddr_cmp(const rimeaddr_t *addr1, const rimeaddr_t *addr2)
|
||||
{
|
||||
return addr1->u16[0] == addr2->u16[0];
|
||||
return addr1->u8[0] == addr2->u8[0] &&
|
||||
addr1->u8[1] == addr2->u8[1];
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue