summaryrefslogtreecommitdiff
path: root/ares__read_line.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-03 13:03:35 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2004-03-03 13:03:35 (GMT)
commit401e862bf6ce9a4f34d3c06451e283ff45a8d000 (patch)
treebc79d92954d5f7119baddf5cdc1110cd0ef5b15c /ares__read_line.c
parent31c0b3b5cc57e3a982ee6684e50bc88e74b0d86b (diff)
downloadc-ares-401e862bf6ce9a4f34d3c06451e283ff45a8d000.zip
c-ares-401e862bf6ce9a4f34d3c06451e283ff45a8d000.tar.gz
c-ares-401e862bf6ce9a4f34d3c06451e283ff45a8d000.tar.bz2
attempted typecase to silence the MIPSpro warning:
cc-1506 cc: REMARK File = ../../curl/ares/ares__read_line.c, Line = 46 There is an implicit conversion from "unsigned long" to "int"; rounding, sign extension, or loss of accuracy may result. if (!fgets(*buf + offset, *bufsize - offset, fp))
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 f550a7a..258f2f6 100644
--- a/ares__read_line.c
+++ b/ares__read_line.c
@@ -43,7 +43,7 @@ int ares__read_line(FILE *fp, char **buf, int *bufsize)
while (1)
{
- if (!fgets(*buf + offset, *bufsize - offset, fp))
+ if (!fgets(*buf + offset, *bufsize - (int)offset, fp))
return (offset != 0) ? 0 : (ferror(fp)) ? ARES_EFILE : ARES_EOF;
len = offset + strlen(*buf + offset);
if ((*buf)[len - 1] == '\n')