2009/4/12 Nouha Baccour <[email protected]>:
> Hi,
> I added some fields in the ctp_data_header_t and deleted the field etx.
> The original size of CTP data header is 8 bytes, but due to added
> fields, the size of the CTP data header becomes 9 bytes.
>
> When I compile I have many errors related to the message_t structure, like:
>
> -----------------------------------------------------------------------------------------------------------------------
> /opt/tinyos-2.x/tos/types/message.h:14: redefinition of `nx_struct message_t'
> /opt/tinyos-2.x/tos/types/message.h:14: warning: tag message_t shadows 
> enclosing
> struct/union/enum
> ---
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: In function
> `getHeader':
>
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:301: warning:
> passing arg
> ument 1 of `SubPacket.getPayload' from incompatible pointer type
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: At top level:
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:313:
> conflicting types fo
> r `Send.send'
> /opt/tinyos-2.x/tos/interfaces/Send.nc:64: previous declaration of `Send.send'
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: In function
> `Send.send':
>
> ---
> /opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:323: warning:
> passing arg
> ument 1 of `Packet.setPayloadLength' from incompatible pointer type
> -----------------------------------------------------------------------------------------------------------------------
>
> If so, how can resolve this problem?

Are you able to compile without making any changes to CTP?

I would not delete any of the fields in the header because they are
all required by CTP.

- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to