summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-13 12:27:02 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-13 12:27:02 (GMT)
commita675af39a70e4cf2a1ffcb37142030929e51087d (patch)
tree70eda4b1dc36bb8976759291d1288ce2a1c111ab /Source/CTest
parent1b7ba8bdd9b512122ffd22cbbba5e05741743f00 (diff)
downloadCMake-a675af39a70e4cf2a1ffcb37142030929e51087d.zip
CMake-a675af39a70e4cf2a1ffcb37142030929e51087d.tar.gz
CMake-a675af39a70e4cf2a1ffcb37142030929e51087d.tar.bz2
ERR: Fix warning
Diffstat (limited to 'Source/CTest')
-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;