]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eigrp.c
CI: Add warning exemptions for Sun C (suncc-5.15) on Solaris 10
[tcpdump] / print-eigrp.c
index d4eced423779acfd01385be8b288f42b246fb348..47bbdce1c8872e9f63e78f0ca7571241dc1e62c4 100644 (file)
@@ -23,9 +23,7 @@
  * RFC 7868
  */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -279,7 +277,7 @@ eigrp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 
     tptr+=sizeof(struct eigrp_common_header);
 
-    while(tlen>0) {
+    while(tlen != 0) {
         if (tlen < sizeof(struct eigrp_tlv_header)) {
             ND_PRINT("\n\t  (only %u bytes of data)", tlen);
             goto invalid;