summaryrefslogtreecommitdiff
path: root/print-enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-enc.c')
-rw-r--r--print-enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-enc.c b/print-enc.c
index d8f0a9e6..502e3233 100644
--- a/print-enc.c
+++ b/print-enc.c
@@ -127,11 +127,11 @@ enc_if_print(netdissect_options *ndo,
* 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)