aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/acountry.c2
-rw-r--r--ares/adig.c2
-rw-r--r--ares/ahost.c2
-rw-r--r--ares/ares__read_line.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/ares/acountry.c b/ares/acountry.c
index e61613c50..c30e6b7d7 100644
--- a/ares/acountry.c
+++ b/ares/acountry.c
@@ -199,7 +199,7 @@ int main(int argc, char **argv)
*/
static void wait_ares(ares_channel channel)
{
- while (1)
+ for (;;)
{
struct timeval *tvp, tv;
fd_set read_fds, write_fds;
diff --git a/ares/adig.c b/ares/adig.c
index 8488d97e9..2a0b43c5c 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -321,7 +321,7 @@ int main(int argc, char **argv)
}
/* Wait for all queries to complete. */
- while (1)
+ for (;;)
{
FD_ZERO(&read_fds);
FD_ZERO(&write_fds);
diff --git a/ares/ahost.c b/ares/ahost.c
index 4e2934057..ce5d35903 100644
--- a/ares/ahost.c
+++ b/ares/ahost.c
@@ -140,7 +140,7 @@ int main(int argc, char **argv)
}
/* Wait for all queries to complete. */
- while (1)
+ for (;;)
{
FD_ZERO(&read_fds);
FD_ZERO(&write_fds);
diff --git a/ares/ares__read_line.c b/ares/ares__read_line.c
index 561b12e77..29f8e5dc0 100644
--- a/ares/ares__read_line.c
+++ b/ares/ares__read_line.c
@@ -44,7 +44,7 @@ int ares__read_line(FILE *fp, char **buf, size_t *bufsize)
*bufsize = 128;
}
- while (1)
+ for (;;)
{
if (!fgets(*buf + offset, (int)(*bufsize - offset), fp))
return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF;