From 12e49e205f2782399369076b922f4b25597ad489 Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 19 Jun 2003 07:57:11 +0000 Subject: [PATCH] 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 --- lib/libc/net/gethostnamadr.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index fdcabc7f4306..f5c3382ffc8f 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;