]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-arp.c
tcpdump.c: Fix a warning when HAVE_FORK and HAVE_VFORK are not defined
[tcpdump] / print-arp.c
index 67bee441ae508d73f7697bcee94e1f3af41f1f7a..950c3b24ef18d37bad7e84ca75bd4b10ebad2ae3 100644 (file)
@@ -21,9 +21,7 @@
 
 /* \summary: Address Resolution Protocol (ARP) printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -179,7 +177,7 @@ struct  atmarp_pkthdr {
 static int
 isnonzero(netdissect_options *ndo, const u_char *a, size_t len)
 {
-       while (len > 0) {
+       while (len != 0) {
                if (GET_U_1(a) != 0)
                        return (1);
                a++;