summaryrefslogtreecommitdiff
path: root/print-carp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-carp.c')
-rw-r--r--print-carp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-carp.c b/print-carp.c
index 918617bd..ceed9b0d 100644
--- a/print-carp.c
+++ b/print-carp.c
@@ -73,9 +73,9 @@ carp_print(netdissect_options *ndo, register const u_char *bp, register u_int le
vec[0].len = len;
if (ND_TTEST2(bp[0], len) && in_cksum(vec, 1))
ND_PRINT((ndo, " (bad carp cksum %x!)",
- EXTRACT_BE_16BITS(&bp[6])));
+ EXTRACT_BE_16BITS(bp + 6)));
}
- ND_PRINT((ndo, "counter=%" PRIu64, EXTRACT_BE_64BITS(&bp[8])));
+ ND_PRINT((ndo, "counter=%" PRIu64, EXTRACT_BE_64BITS(bp + 8)));
return;
trunc: