aboutsummaryrefslogtreecommitdiff
path: root/ares/ares__read_line.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-10 18:41:03 +0000
committerYang Tse <yangsita@gmail.com>2009-11-10 18:41:03 +0000
commit1aa320dedbf7e9a39fd1dcf599065f6de7bf9fd2 (patch)
tree460939da7c12042f2fbb7143db1df161934acb5d /ares/ares__read_line.c
parentd17ce4e9f12f5c76174011a0928737bf1b24b538 (diff)
Fix compiler warning: conditional expression is constant
Diffstat (limited to 'ares/ares__read_line.c')
-rw-r--r--ares/ares__read_line.c2
1 files changed, 1 insertions, 1 deletions
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;