diff options
| author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-24 22:48:55 +0100 |
|---|---|---|
| committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-24 22:48:55 +0100 |
| commit | 39c8c55aa9ff84244cf558b9a957b78933babf0a (patch) | |
| tree | d1f013767035c78b78a987cea509567603ab7783 /print-loopback.c | |
| parent | c511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff) | |
| download | tcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz | |
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-loopback.c')
| -rw-r--r-- | print-loopback.c | 6 |
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)); |
