From: Francois-Xavier Le Bail Date: Sun, 19 Nov 2017 15:46:36 +0000 (+0100) Subject: Use more the EXTRACT_8BITS() macro to fetch a one-byte value (7/n) X-Git-Tag: tcpdump-4.99-bp~1755 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/2cb963a5e06999254b7c34f8a490e65f687b239d?ds=sidebyside Use more the EXTRACT_8BITS() macro to fetch a one-byte value (7/n) In RSVP_OBJ_XRO_MASK_LOOSE() macro call. --- diff --git a/print-rsvp.c b/print-rsvp.c index 1283c1bb..ba4a758d 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -1098,7 +1098,7 @@ rsvp_obj_print(netdissect_options *ndo, goto invalid; } ND_PRINT((ndo, ", %s, %s/%u, Flags: [%s]", - RSVP_OBJ_XRO_MASK_LOOSE(*obj_tptr) ? "Loose" : "Strict", + RSVP_OBJ_XRO_MASK_LOOSE(EXTRACT_8BITS(obj_tptr)) ? "Loose" : "Strict", ipaddr_string(ndo, obj_tptr+2), *(obj_tptr+6), bittok2str(rsvp_obj_rro_flag_values,