diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-11 12:46:51 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-11 22:11:01 +0100 |
commit | 84ef17ac0eecb3efc11a63c3f2c578ae78732c02 (patch) | |
tree | c62632ddf7ae57a999a89938ecaf8e590bfcc019 /print-atalk.c | |
parent | 264ed29aae3407c1a6816c64813806a077ccebcb (diff) | |
download | tcpdump-84ef17ac0eecb3efc11a63c3f2c578ae78732c02.tar.gz |
Replace ND_TTEST2()/ND_TCHECK2() macros by macros using pointers (1/n)
ND_TTEST2(var, l) -> ND_TTEST_LEN(p, l)
ND_TCHECK2(var, l) -> ND_TCHECK_LEN(p, l)
Diffstat (limited to 'print-atalk.c')
-rw-r--r-- | print-atalk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-atalk.c b/print-atalk.c index ce61a44c..f8f95de4 100644 --- a/print-atalk.c +++ b/print-atalk.c @@ -104,7 +104,7 @@ llap_print(netdissect_options *ndo, ND_PRINT((ndo, " [|llap %u]", length)); return (length); } - if (!ND_TTEST2(*bp, sizeof(*lp))) { + if (!ND_TTEST_LEN(bp, sizeof(*lp))) { ND_PRINT((ndo, " [|llap]")); return (0); /* cut short by the snapshot length */ } @@ -119,7 +119,7 @@ llap_print(netdissect_options *ndo, ND_PRINT((ndo, " [|sddp %u]", length)); return (length); } - if (!ND_TTEST2(*bp, ddpSSize)) { + if (!ND_TTEST_LEN(bp, ddpSSize)) { ND_PRINT((ndo, " [|sddp]")); return (0); /* cut short by the snapshot length */ } @@ -139,7 +139,7 @@ llap_print(netdissect_options *ndo, ND_PRINT((ndo, " [|ddp %u]", length)); return (length); } - if (!ND_TTEST2(*bp, ddpSize)) { + if (!ND_TTEST_LEN(bp, ddpSize)) { ND_PRINT((ndo, " [|ddp]")); return (0); /* cut short by the snapshot length */ } @@ -189,7 +189,7 @@ atalk_print(netdissect_options *ndo, ND_PRINT((ndo, " [|ddp %u]", length)); return; } - if (!ND_TTEST2(*bp, ddpSize)) { + if (!ND_TTEST_LEN(bp, ddpSize)) { ND_PRINT((ndo, " [|ddp]")); return; } |