From: Francois-Xavier Le Bail Date: Mon, 26 Feb 2024 14:14:03 +0000 (+0100) Subject: BGP: Replace '> 0' with '!= 0' in an unsigned expression test X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/52f059281da2f476a7e2dbff3fe39800507264c3 BGP: Replace '> 0' with '!= 0' in an unsigned expression test Unsigned is always >= 0, so '> 0' and '!= 0' are identical. This makes the test a little clearer. --- diff --git a/print-bgp.c b/print-bgp.c index 571f4388..9cfdf994 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -2653,7 +2653,7 @@ bgp_attr_print(netdissect_options *ndo, tptr += 3; sblen -= 3; /* Parse signature segments */ - while (sblen > 0) { + while (sblen != 0) { uint16_t siglen; ND_PRINT("\n\t Signature Segment:\n\t SKI: ");