summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-04-19 12:28:17 +0000
committerume <ume@FreeBSD.org>2005-04-19 12:28:17 +0000
commit6164476dea9f421c5fe3e050664d5ea7ff17cf7d (patch)
treeb4a1e4858cb1ddbe8ca93ea6a10241743c5b2ac6 /lib
parent999a402d600cdf44fc7abfa1450cb3332212ffae (diff)
downloadFreeBSD-src-6164476dea9f421c5fe3e050664d5ea7ff17cf7d.zip
FreeBSD-src-6164476dea9f421c5fe3e050664d5ea7ff17cf7d.tar.gz
- nuke deprecated and unused getnodeby(3).
- remove unused variable. Obtained from: KAME
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/name6.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index a738b95..37059b3 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -453,35 +453,6 @@ freehostent(struct hostent *ptr)
free(ptr);
}
-#if 0
-
-/* XXX: should be deprecated */
-struct hostent *
-getnodebyname(const char *name, int af, int flags)
-{
- return getipnodebyname(name, af, flags, &h_errno);
-}
-
-#ifdef __warn_references
-__warn_references(getnodebyname,
- "warning: getnodebyname() deprecated, "
- "should use getaddrinfo() or getipnodebyname()");
-#endif
-
-struct hostent *
-getnodebyaddr(const void *src, size_t len, int af)
-{
- return getipnodebyaddr(src, len, af, &h_errno);
-}
-
-#ifdef __warn_references
-__warn_references(getnodebyaddr,
- "warning: getnodebyaddr() deprecated, "
- "should use getnameinfo() or getipnodebyaddr()");
-#endif
-
-#endif
-
/*
* Private utility functions
*/
@@ -1814,7 +1785,6 @@ _dns_ghbyaddr(void *rval, void *cb_data, va_list ap)
u_char c, *cp;
char *bp;
struct hostent hbuf;
- int na;
#ifdef INET6
static const char hex[] = "0123456789abcdef";
#endif
@@ -1861,7 +1831,6 @@ _dns_ghbyaddr(void *rval, void *cb_data, va_list ap)
hbuf.h_name = NULL;
hbuf.h_addrtype = af;
hbuf.h_length = addrlen;
- na = 0;
buf = malloc(sizeof(*buf));
if (buf == NULL) {
OpenPOWER on IntegriCloud