summaryrefslogtreecommitdiff
path: root/print-sunatm.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-26 13:02:48 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-26 15:44:43 +0100
commit1a90fd99d279d63242419a30ba3e0720872bff75 (patch)
treeb8b631a40f376875b5458bd1ec23d8775c0d266d /print-sunatm.c
parent575188b5bf4fc1c26a2766319fcb7ca57d393868 (diff)
downloadtcpdump-1a90fd99d279d63242419a30ba3e0720872bff75.tar.gz
Use more the EXTRACT_U_1() macro (28/n)
In ND_PRINT() macro call(s) (step 7). p[n] ...
Diffstat (limited to 'print-sunatm.c')
-rw-r--r--print-sunatm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-sunatm.c b/print-sunatm.c
index 8c0b132a..eaa7125d 100644
--- a/print-sunatm.c
+++ b/print-sunatm.c
@@ -78,7 +78,7 @@ sunatm_if_print(netdissect_options *ndo,
}
if (ndo->ndo_eflag) {
- ND_PRINT((ndo, p[DIR_POS] & 0x80 ? "Tx: " : "Rx: "));
+ ND_PRINT((ndo, EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: "));
}
switch (p[DIR_POS] & 0x0f) {