ERR: Fix warning

This commit is contained in:
Andy Cedilnik 2003-05-13 08:27:02 -04:00
parent 1b7ba8bdd9
commit a675af39a7
1 changed files with 2 additions and 2 deletions

View File

@ -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;