summaryrefslogtreecommitdiff
path: root/ares__read_line.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-10 18:41:03 (GMT)
committerYang Tse <yangsita@gmail.com>2009-11-10 18:41:03 (GMT)
commit1c5f8be38d7eed4c18eb52df8e6684a9a02c93e0 (patch)
tree0fda201a3960dff0c42e427090bb5f9860b3c4b2 /ares__read_line.c
parent253ad4a72619f55e365ce104df6784acb834c0b7 (diff)
downloadc-ares-1c5f8be38d7eed4c18eb52df8e6684a9a02c93e0.zip
c-ares-1c5f8be38d7eed4c18eb52df8e6684a9a02c93e0.tar.gz
c-ares-1c5f8be38d7eed4c18eb52df8e6684a9a02c93e0.tar.bz2
Fix compiler warning: conditional expression is constant
Diffstat (limited to 'ares__read_line.c')
-rw-r--r--ares__read_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares__read_line.c b/ares__read_line.c
index 561b12e..29f8e5d 100644
--- a/ares__read_line.c
+++ b/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;