It's probably safe to do so, but don't rely on it.
Also, use parens around the argument to sizeof, to match the style used
elsewhere.
* The SPI field is always in network byte order, i.e. big-
* endian.
*/
- UNALIGNED_MEMCPY(&af, &hdr->af, sizeof af);
- UNALIGNED_MEMCPY(&flags, &hdr->flags, sizeof flags);
+ UNALIGNED_MEMCPY(&af, &hdr->af, sizeof (af));
+ UNALIGNED_MEMCPY(&flags, &hdr->flags, sizeof (flags));
if ((af & 0xFFFF0000) != 0) {
af = SWAPLONG(af);
- flags = SWAPLONG(hdr->flags);
+ flags = SWAPLONG(flags);
}
if (flags == 0)