X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3b55630748a68444997388a398c3c5d1f4325b2b..d8078c7fcb4d8260ca2e9ebb78f43d71894be639:/print-ascii.c diff --git a/print-ascii.c b/print-ascii.c index 71db40dd..f504d2f7 100644 --- a/print-ascii.c +++ b/print-ascii.c @@ -38,9 +38,7 @@ /* \summary: ASCII packet dump printer */ -#ifdef HAVE_CONFIG_H #include -#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--;