From 716e07e0602694c434414de78f278a2451ea92cf Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Mon, 20 Nov 2017 08:05:29 +0100 Subject: Use more the EXTRACT_8BITS() macro to fetch a one-byte value (12/n) In ND_PRINT() macro calls. --- print-ldp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-ldp.c') diff --git a/print-ldp.c b/print-ldp.c index facb2313..ed176b70 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -446,10 +446,10 @@ ldp_tlv_print(netdissect_options *ndo, case LDP_FEC_MARTINI_IFPARM_VCCV: ND_PRINT((ndo, "\n\t\t Control Channels (0x%02x) = [%s]", - *(tptr+2), + EXTRACT_8BITS((tptr + 2)), bittok2str(ldp_fec_martini_ifparm_vccv_cc_values, "none", EXTRACT_8BITS((tptr + 2))))); ND_PRINT((ndo, "\n\t\t CV Types (0x%02x) = [%s]", - *(tptr+3), + EXTRACT_8BITS((tptr + 3)), bittok2str(ldp_fec_martini_ifparm_vccv_cv_values, "none", EXTRACT_8BITS((tptr + 3))))); break; -- cgit v1.2.1