logger(mesh, MESHLINK_DEBUG, "Routing packet from \"%s\" to \"%s\"\n", hdr->source, hdr->destination);
//Check Lenght
- if(!checklength(source, packet, sizeof *hdr))
+ if(!checklength(source, packet, sizeof(*hdr)))
return;
if(owner == NULL) {
}
if(owner == mesh->self) {
- const void *payload = packet->data + sizeof *hdr;
- size_t len = packet->len - sizeof *hdr;
+ const void *payload = packet->data + sizeof(*hdr);
+ size_t len = packet->len - sizeof(*hdr);
char hex[len*2 + 1];
if(mesh->log_level >= MESHLINK_DEBUG)