From: gnawali Date: Mon, 21 Sep 2009 02:19:42 +0000 (+0000) Subject: fixed bug reported by Mehmet Akif Antepli - arg type mismatch X-Git-Tag: rc_6_tinyos_2_1_1~225 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=2375d41079e2cd0bbad988949ad4df9feef8696f fixed bug reported by Mehmet Akif Antepli - arg type mismatch --- diff --git a/tos/lib/net/ctp/CtpRoutingEngineP.nc b/tos/lib/net/ctp/CtpRoutingEngineP.nc index 1f8a484c..298cd640 100644 --- a/tos/lib/net/ctp/CtpRoutingEngineP.nc +++ b/tos/lib/net/ctp/CtpRoutingEngineP.nc @@ -808,7 +808,7 @@ implementation { command uint16_t CtpRoutingPacket.getEtx(message_t* msg) { return getHeader(msg)->etx; } - command void CtpRoutingPacket.setEtx(message_t* msg, uint8_t etx) { + command void CtpRoutingPacket.setEtx(message_t* msg, uint16_t etx) { getHeader(msg)->etx = etx; } diff --git a/tos/lib/net/ctp/CtpRoutingPacket.nc b/tos/lib/net/ctp/CtpRoutingPacket.nc index fb5ec31d..00153e61 100644 --- a/tos/lib/net/ctp/CtpRoutingPacket.nc +++ b/tos/lib/net/ctp/CtpRoutingPacket.nc @@ -54,5 +54,5 @@ interface CtpRoutingPacket { command void setParent(message_t* ONE msg, am_addr_t addr); command uint16_t getEtx(message_t* ONE msg); - command void setEtx(message_t* ONE msg, uint8_t etx); + command void setEtx(message_t* ONE msg, uint16_t etx); }