Removal of bogus gethostbyaddr_r()
Kris Kennaway
kris at obsecurity.org
Wed Jun 18 01:37:33 PDT 2003
Any objections?
Kris
Index: net/gethostnamadr.c
===================================================================
RCS file: /usr/home/ncvs/src/lib/libc/net/gethostnamadr.c,v
retrieving revision 1.21
diff -u -u -r1.21 gethostnamadr.c
--- net/gethostnamadr.c 24 Apr 2003 18:05:48 -0000 1.21
+++ net/gethostnamadr.c 18 Jun 2003 08:19:43 -0000
@@ -116,25 +116,6 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20030618/2b5013ee/attachment.bin
More information about the freebsd-threads
mailing list