From 5615eaf26469f20c2d8c3be5770e12564a1edfff Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 10 Jun 2011 12:45:09 -0700 Subject: Quash some new warnings from GCC 4.6. --- nscd/hstcache.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'nscd') diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 101ad2a775..1ab5860f2d 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -190,7 +190,6 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req, size_t h_aliases_cnt; uint32_t *h_aliases_len; size_t h_addr_list_cnt; - int addr_list_type; char *addresses; char *aliases; char *key_copy = NULL; @@ -409,9 +408,6 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req, + total + req->key_len, MS_ASYNC); } - addr_list_type = (hst->h_length == NS_INADDRSZ - ? GETHOSTBYADDR : GETHOSTBYADDRv6); - /* NB: the following code is really complicated. It has seemlingly duplicated code paths which do the same. The problem is that we always must add the hash table entry -- cgit v1.2.3