X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7f3c0900e38225fe3a50937c943a7d38bf3f2b22..refs/heads/coverity_scan:/print-ospf6.c diff --git a/print-ospf6.c b/print-ospf6.c index b1325364..c6f5f67d 100644 --- a/print-ospf6.c +++ b/print-ospf6.c @@ -23,9 +23,7 @@ /* \summary: IPv6 Open Shortest Path First (OSPFv3) printer */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -661,7 +659,7 @@ ospf6_print_lsa(netdissect_options *ndo, prefixes); tptr = (const uint8_t *)llsap->llsa_prefix; - while (prefixes > 0) { + while (prefixes != 0) { bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); if (bytelen < 0) goto trunc; @@ -693,7 +691,7 @@ ospf6_print_lsa(netdissect_options *ndo, ND_PRINT("\n\t Prefixes %u:", prefixes); tptr = (const uint8_t *)lsap->lsa_un.un_intra_ap.intra_ap_prefix; - while (prefixes > 0) { + while (prefixes != 0) { bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); if (bytelen < 0) goto trunc;