ERR: Fix warning
This commit is contained in:
parent
1b7ba8bdd9
commit
a675af39a7
@ -477,11 +477,11 @@ static struct hostent* pack_hostent(char** buf, struct hostent* orig)
|
|||||||
newbuf=(struct hostent *)realloc(*buf, (int)bufptr-(int)(*buf));
|
newbuf=(struct hostent *)realloc(*buf, (int)bufptr-(int)(*buf));
|
||||||
|
|
||||||
/* if the alloc moved, we need to adjust things again */
|
/* 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);
|
hostcache_fixoffset((struct hostent*)newbuf, (int)newbuf-(int)*buf);
|
||||||
|
|
||||||
/* setup the return */
|
/* setup the return */
|
||||||
*buf = newbuf;
|
*buf = (char*)newbuf;
|
||||||
copy = (struct hostent*)newbuf;
|
copy = (struct hostent*)newbuf;
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user