summaryrefslogtreecommitdiff
path: root/print-loopback.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
commit39c8c55aa9ff84244cf558b9a957b78933babf0a (patch)
treed1f013767035c78b78a987cea509567603ab7783 /print-loopback.c
parentc511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff)
downloadtcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz
Use more ND_TCHECK_n()/ND_TTEST_n() macros
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));