From: Guy Harris Date: Sat, 1 Feb 2014 22:08:25 +0000 (-0800) Subject: Fix a compiler warning. X-Git-Tag: tcpdump-4.6.0~241 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/6bfa3ea6aac54226bd694c45f08107755d45eda2 Fix a compiler warning. It's not necessarily safe to do pre-increment or post-increment in an argument to an EXTRACT_ macro. --- diff --git a/print-isoclns.c b/print-isoclns.c index 661aa062..6b219361 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -1810,7 +1810,8 @@ isis_print_is_reach_subtlv (const u_int8_t *tptr,u_int subt,u_int subl,const cha printf (", LM: %u", EXTRACT_24BITS(tptr)); tptr=tptr+3; printf (", P: %u", *(tptr)); - printf (", P-ID: %u", EXTRACT_16BITS(++tptr)); + tptr++; + printf (", P-ID: %u", EXTRACT_16BITS(tptr)); } break; case ISIS_SUBTLV_EXT_IS_REACH_INTF_SW_CAP_DESCR: