aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index c69c36dd..e7b7134e 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -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';