summaryrefslogtreecommitdiff
path: root/print-loopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-loopback.c')
-rw-r--r--print-loopback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-loopback.c b/print-loopback.c
index ac7b1779..9ef77a97 100644
--- a/print-loopback.c
+++ b/print-loopback.c
@@ -63,7 +63,7 @@ loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int le
if (len < 2)
goto invalid;
/* function */
- ND_TCHECK2(*cp, 2);
+ ND_TCHECK_2(cp);
function = EXTRACT_LE_U_2(cp);
cp += 2;
ND_PRINT((ndo, ", %s", tok2str(fcode_str, " invalid (%u)", function)));
@@ -73,7 +73,7 @@ loopback_message_print(netdissect_options *ndo, const u_char *cp, const u_int le
if (len < 4)
goto invalid;
/* receipt number */
- ND_TCHECK2(*cp, 2);
+ ND_TCHECK_2(cp);
ND_PRINT((ndo, ", receipt number %u", EXTRACT_LE_U_2(cp)));
cp += 2;
/* data */
@@ -115,7 +115,7 @@ loopback_print(netdissect_options *ndo, const u_char *cp, const u_int len)
if (len < 2)
goto invalid;
/* skipCount */
- ND_TCHECK2(*cp, 2);
+ ND_TCHECK_2(cp);
skipCount = EXTRACT_LE_U_2(cp);
cp += 2;
ND_PRINT((ndo, ", skipCount %u", skipCount));