diff options
author | kris <kris@FreeBSD.org> | 2003-06-19 07:57:11 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-06-19 07:57:11 +0000 |
commit | 5ac65c46e64b21cbadea9ac53fc4e019c8005e3e (patch) | |
tree | 701c8c56f75a6ce738720b6ebea9fe7274ab20ac /lib/libc/net | |
parent | 6210723d81601784448c0df8751a6e79e7af72d8 (diff) | |
download | FreeBSD-src-5ac65c46e64b21cbadea9ac53fc4e019c8005e3e.zip FreeBSD-src-5ac65c46e64b21cbadea9ac53fc4e019c8005e3e.tar.gz |
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
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index fdcabc7..f5c3382 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -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; |