X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/78651639891de4a150f23ab635ef940f6ee22d8e..HEAD:/print-cfm.c diff --git a/print-cfm.c b/print-cfm.c index be32acfe..84fd5d94 100644 --- a/print-cfm.c +++ b/print-cfm.c @@ -17,9 +17,7 @@ /* \summary: IEEE 802.1ag Connectivity Fault Management (CFM) protocols printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -528,7 +526,7 @@ cfm_print(netdissect_options *ndo, tptr += first_tlv_offset; tlen -= first_tlv_offset; - while (tlen > 0) { + while (tlen != 0) { cfm_tlv_header = (const struct cfm_tlv_header_t *)tptr; /* Enough to read the tlv type ? */