*/
static void wait_ares(ares_channel channel)
{
- while (1)
+ for (;;)
{
struct timeval *tvp, tv;
fd_set read_fds, write_fds;
}
/* Wait for all queries to complete. */
- while (1)
+ for (;;)
{
FD_ZERO(&read_fds);
FD_ZERO(&write_fds);
}
/* Wait for all queries to complete. */
- while (1)
+ for (;;)
{
FD_ZERO(&read_fds);
FD_ZERO(&write_fds);
*bufsize = 128;
}
- while (1)
+ for (;;)
{
if (!fgets(*buf + offset, (int)(*bufsize - offset), fp))
return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF;