Fix compiler warning: conditional expression is constant
This commit is contained in:
Родитель
d17ce4e9f1
Коммит
1aa320dedb
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче