diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-04-19 12:28:17 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-04-19 12:28:17 +0000 |
| commit | d7d66e8c858099c0ee40329dd295ba9049ddea8c (patch) | |
| tree | b4a1e4858cb1ddbe8ca93ea6a10241743c5b2ac6 /lib/libc/net | |
| parent | 31be53fa7028ddf1058e991084493c082e4b614f (diff) | |
Notes
Diffstat (limited to 'lib/libc/net')
| -rw-r--r-- | lib/libc/net/name6.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index a738b956a60d..37059b351ba0 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) { |
