diff options
author | ume <ume@FreeBSD.org> | 2005-04-25 14:52:13 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-04-25 14:52:13 +0000 |
commit | 2b87c6fe2cb76ce1e483d8595ba45e46d2503f8a (patch) | |
tree | 399c6a4d3e86bbb97eeddd43a88968214ff6ed7f /lib | |
parent | e4504e06f64a2e8952dc0a772128bb606bf68efa (diff) | |
download | FreeBSD-src-2b87c6fe2cb76ce1e483d8595ba45e46d2503f8a.zip FreeBSD-src-2b87c6fe2cb76ce1e483d8595ba45e46d2503f8a.tar.gz |
remove unused variable.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/gethostbydns.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 24de7ff..33a0749 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -478,7 +478,7 @@ _dns_gethostbyname(void *rval, void *cb_data, va_list ap) querybuf *buf; const char *cp; char *bp, *ep; - int n, size, type, len; + int n, size, type; char abuf[MAXDNAME]; name = va_arg(ap, const char *); @@ -571,8 +571,6 @@ _dns_gethostbyname(void *rval, void *cb_data, va_list ap) } strncpy(hostbuf, name, MAXDNAME); hostbuf[MAXDNAME] = '\0'; - bp = hostbuf + MAXDNAME; - len = sizeof hostbuf - MAXDNAME; host.h_name = hostbuf; host.h_aliases = host_aliases; host_aliases[0] = NULL; |