]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ascii.c
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / print-ascii.c
index 71db40dd243fa80f7f487d2d4b0959e4009f2769..f504d2f7f0cfb0305b3d9d51a07447f4a8694b38 100644 (file)
@@ -38,9 +38,7 @@
 
 /* \summary: ASCII packet dump printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -73,7 +71,7 @@ ascii_print(netdissect_options *ndo,
                truncated = TRUE;
        }
        ND_PRINT("\n");
-       while (length > 0) {
+       while (length != 0) {
                s = GET_U_1(cp);
                cp++;
                length--;