diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 13:53:38 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-03 14:00:15 +0100 |
commit | 10a52254aeb943a15518461c055429cc42a305ef (patch) | |
tree | fb84630725fb805a48ac6ceda30aff47554de155 /print-sunatm.c | |
parent | 61c422a88caefe986c2bc0a7f2f3028f696fa5cd (diff) | |
download | tcpdump-10a52254aeb943a15518461c055429cc42a305ef.tar.gz |
Use more the EXTRACT_U_1() macro (44/n)
In: switch (... p[n] ...) ...
Diffstat (limited to 'print-sunatm.c')
-rw-r--r-- | print-sunatm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-sunatm.c b/print-sunatm.c index eaa7125d..c46598d4 100644 --- a/print-sunatm.c +++ b/print-sunatm.c @@ -81,7 +81,7 @@ sunatm_if_print(netdissect_options *ndo, ND_PRINT((ndo, EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: ")); } - switch (p[DIR_POS] & 0x0f) { + switch (EXTRACT_U_1(p + DIR_POS) & 0x0f) { case PT_LANE: traftype = ATM_LANE; |