Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2003 01:37:32 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        threads@FreeBSD.org
Subject:   Removal of bogus gethostbyaddr_r()
Message-ID:  <20030618083732.GA8907@rot13.obsecurity.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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;

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+8CTMWry0BWjoQKURArwiAJ9zzjyYyRO2E9nS2yJ8XCbGMC9jegCfYEwu
miOgtcWxhukoJUdMhtCv7vo=
=DVMe
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030618083732.GA8907>