]> The Tcpdump Group git mirrors - libpcap/blobdiff - nametoaddr.c
Use for (;;) rather than while (1).
[libpcap] / nametoaddr.c
index c69c36dddbbd5629cca12d1a9c1b723abe5da070..e7b7134ee53cc557ca3135aed181962f29189837 100644 (file)
@@ -632,7 +632,7 @@ __pcap_atoin(const char *s, bpf_u_int32 *addr)
 
        *addr = 0;
        len = 0;
-       while (1) {
+       for (;;) {
                n = 0;
                while (*s && *s != '.')
                        n = n * 10 + *s++ - '0';