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-pgm.c | |
parent | c511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff) | |
download | tcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz |
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-pgm.c')
-rw-r--r-- | print-pgm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-pgm.c b/print-pgm.c index 723a074d..aee7d574 100644 --- a/print-pgm.c +++ b/print-pgm.c @@ -459,7 +459,7 @@ pgm_print(netdissect_options *ndo, ND_PRINT((ndo, "[Total option length leaves no room for final option]")); return; } - if (!ND_TTEST2(*bp, 2)) { + if (!ND_TTEST_2(bp)) { ND_PRINT((ndo, " [|OPT]")); return; } @@ -521,7 +521,7 @@ pgm_print(netdissect_options *ndo, ND_PRINT((ndo, "[Option length not a multiple of 4]")); return; } - ND_TCHECK2(*bp, 4); + ND_TCHECK_4(bp); ND_PRINT((ndo, " %u", EXTRACT_BE_U_4(bp))); bp += 4; opt_len -= 4; |