This commit is contained in:
chris
2002-04-01 22:44:41 +00:00
parent e7c96c16cc
commit 9e3d1e08ef
3 changed files with 12 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ void resolver_worker(void* ptr) {
/* Allocate buffer, remember to free it to avoid memory leakage. */
tmphstbuf = xmalloc (hstbuflen);
while ((res = gethostbyaddr_r (&addr, sizeof(addr), AF_INET,
while ((res = gethostbyaddr_r ((char*)&addr, sizeof(addr), AF_INET,
&hostbuf, tmphstbuf, hstbuflen,
&hp, &herr)) == ERANGE) {
/* Enlarge the buffer. */