From 1a90fd99d279d63242419a30ba3e0720872bff75 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sun, 26 Nov 2017 13:02:48 +0100 Subject: Use more the EXTRACT_U_1() macro (28/n) In ND_PRINT() macro call(s) (step 7). p[n] ... --- print-sunatm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-sunatm.c') 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) { -- cgit v1.2.1