From a675af39a70e4cf2a1ffcb37142030929e51087d Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 13 May 2003 08:27:02 -0400 Subject: ERR: Fix warning --- Source/CTest/Curl/hostip.c | 4 ++-- 1 file 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; -- cgit v0.12