summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/Curl/hostip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/Curl/hostip.c b/Source/CTest/Curl/hostip.c
index 996d8c4..c2012ca 100644
--- a/Source/CTest/Curl/hostip.c
+++ b/Source/CTest/Curl/hostip.c
@@ -477,11 +477,11 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig)
newbuf=(struct hostent *)realloc(*buf, (int)bufptr-(int)(*buf));
/* if the alloc moved, we need to adjust things again */
- if(newbuf != *buf)
+ if((char*)newbuf != *buf)
hostcache_fixoffset((struct hostent*)newbuf, (int)newbuf-(int)*buf);
/* setup the return */
- *buf = newbuf;
+ *buf = (char*)newbuf;
copy = (struct hostent*)newbuf;
return copy;