[Tinyos-help] BcastM

Philip Levis pal at cs.stanford.edu
Thu Mar 15 14:27:34 PDT 2007


On Mar 15, 2007, at 2:04 PM, Benjamin Madore wrote:

> In BcastM.nc in /lib/Brodcast:
>
>   143       signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len);
>   144     }
>   145     return pMsg;
>   146   }
>
> Shouldn't it be something like:
>
>   XXX   TOS_MsgPtr ret;
>   143       ret = signal Receive.receive[id](pMsg,&pBCMsg->data 
> [0],Len);
>   144     }
>   145     return ret;
>   146   }
>
> because it expects to be returned a TOS_MsgPtr that may have been  
> swapped by
> whatever component received the data?

Yes, it definitely should. If you want, I can give you write access  
to the repository to apply your fix.

Phil


More information about the Tinyos-help mailing list