Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()
that has been here for 6 years and 9 months. Reviewed by: deischen MFC After: 1 week
This commit is contained in:
parent
30398d34ea
commit
12e49e205f
@ -116,25 +116,6 @@ gethostbyaddr(const char *addr, int len, int type)
|
||||
return hp;
|
||||
}
|
||||
|
||||
struct hostent_data;
|
||||
|
||||
/*
|
||||
* Temporary function (not thread safe)
|
||||
*/
|
||||
int gethostbyaddr_r(const char *addr, int len, int type,
|
||||
struct hostent *result, struct hostent_data *buffer)
|
||||
{
|
||||
struct hostent *hp;
|
||||
int ret;
|
||||
if ((hp = gethostbyaddr(addr, len, type)) == NULL) {
|
||||
ret = -1;
|
||||
} else {
|
||||
memcpy(result, hp, sizeof(struct hostent));
|
||||
ret = 0;
|
||||
}
|
||||
return(ret);
|
||||
}
|
||||
|
||||
void
|
||||
sethostent(stayopen)
|
||||
int stayopen;
|
||||
|
Loading…
Reference in New Issue
Block a user