diff options
author | ume <ume@FreeBSD.org> | 2004-06-16 16:41:23 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2004-06-16 16:41:23 +0000 |
commit | 12902610396d375c2ad19336c8722ddb771e5632 (patch) | |
tree | 33c3dac2cd808f3883af61834c1d570ab4737157 /lib/libc/net | |
parent | 6b590797c3f633f55f4c13b245761b6967508ce4 (diff) | |
download | FreeBSD-src-12902610396d375c2ad19336c8722ddb771e5632.zip FreeBSD-src-12902610396d375c2ad19336c8722ddb771e5632.tar.gz |
Rename variable name from `name' to `hostname'.
This is a corresponding change to bin/67994. I'll soon commit
bin/67994 into 4-STABLE. Actually, 5-CURRENT's getaddrinfo()
doesn't have the problem mentiond in bin/67994. However, it is
good to be in sync variable name with 4-STABLE and KAME.
PR: bin/67994
Submitted by: JINMEI Tatuya <jinmei@ocean.jinmei.org>
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index f88a58f..6508024 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -1943,12 +1943,12 @@ _dns_getaddrinfo(rv, cb_data, ap) { struct addrinfo *ai; querybuf *buf, *buf2; - const char *name; + const char *hostname; const struct addrinfo *pai; struct addrinfo sentinel, *cur; struct res_target q, q2; - name = va_arg(ap, char *); + hostname = va_arg(ap, char *); pai = va_arg(ap, const struct addrinfo *); memset(&q, 0, sizeof(q2)); @@ -1971,27 +1971,27 @@ _dns_getaddrinfo(rv, cb_data, ap) switch (pai->ai_family) { case AF_UNSPEC: /* prefer IPv6 */ - q.name = name; + q.name = hostname; q.qclass = C_IN; q.qtype = T_AAAA; q.answer = buf->buf; q.anslen = sizeof(buf->buf); q.next = &q2; - q2.name = name; + q2.name = hostname; q2.qclass = C_IN; q2.qtype = T_A; q2.answer = buf2->buf; q2.anslen = sizeof(buf2->buf); break; case AF_INET: - q.name = name; + q.name = hostname; q.qclass = C_IN; q.qtype = T_A; q.answer = buf->buf; q.anslen = sizeof(buf->buf); break; case AF_INET6: - q.name = name; + q.name = hostname; q.qclass = C_IN; q.qtype = T_AAAA; q.answer = buf->buf; @@ -2002,7 +2002,7 @@ _dns_getaddrinfo(rv, cb_data, ap) free(buf2); return NS_UNAVAIL; } - if (res_searchN(name, &q) < 0) { + if (res_searchN(hostname, &q) < 0) { free(buf); free(buf2); return NS_NOTFOUND; |