Hello,

Is this legal:
--- 8< ----
serial_header_t* getHeader(message_t* msg) {
  return (serial_header_t*)(msg->data - sizeof(serial_header_t));
}
--- 8< ----
... or is the (msg->data) missing an address-of operator?
The construct is found (at least) in TEP111 and CC2420TimeSyncMessageP.ncf

BR Flemming Nyboe
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to