diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-04-17 17:57:54 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-04-17 18:31:24 +0200 |
commit | 81545fb1061b722343f417b8013428928573df9b (patch) | |
tree | 286ca8f39382d2240e9b4a45b364d6614f4731be | |
parent | dcb6ac13546486099fd1c5fb83771cb69f2a16b7 (diff) |
resolv: remove unused variables
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/inet/resolv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 0ce1acdaf..e75e94010 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -338,7 +338,6 @@ Domain name in a message can be represented as either: #define MAX_RECURSE 5 #define MAXALIASES (4) #define BUFSZ (80) /* one line */ -#define SBUFSIZE (BUFSZ + 1 + (sizeof(char *) * MAXALIASES)) #define NS_TYPE_ELT 0x40 /*%< EDNS0 extended label type */ #define DNS_LABELTYPE_BITSTRING 0x41 @@ -1606,7 +1605,6 @@ int attribute_hidden __read_etc_hosts_r( int *h_errnop) { char **alias; - char **host_aliases; char **tok = NULL; struct in_addr *h_addr0 = NULL; const size_t aliaslen = INADDROFF + @@ -1641,7 +1639,7 @@ int attribute_hidden __read_etc_hosts_r( *h_errnop = HOST_NOT_FOUND; /* <ip>[[:space:]][<aliases>] */ while (config_read(parser, &tok, MAXTOKENS-1, MINTOKENS, "# \t", PARSE_NORMAL)) { - result_buf->h_aliases = alias = host_aliases = tok+1; + result_buf->h_aliases = alias = tok+1; if (action == GETHOSTENT) { /* Return whatever the next entry happens to be. */ break; |