From 95b53cdd9ff8736db511c222d789fbccb4abd09a Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Thu, 30 Nov 2017 00:08:11 +1100 Subject: [PATCH] Remove unused variable hp in ar_procanswer() Also mark unused variable ttl. It's easiest to keep the variable because we still need to skip the TTL in the header. --- source/misc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/misc.c b/source/misc.c index bccb91c..e6b53fc 100644 --- a/source/misc.c +++ b/source/misc.c @@ -2575,7 +2575,6 @@ static int ar_procanswer(struct reslist *rptr, HEADER *hptr, unsigned char *buf, char **alias; int class, type, dlen, len, ans = 0, n; unsigned int ttl, dr, *adr; - struct hent *hp; cp = buf + HFIXEDSZ; adr = (unsigned int *)rptr->re_he.h_addr_list; @@ -2587,9 +2586,6 @@ static int ar_procanswer(struct reslist *rptr, HEADER *hptr, unsigned char *buf, while (*alias) alias++; - hp = &rptr->re_he; - - /* * Skip over the original question. */ @@ -2621,6 +2617,7 @@ static int ar_procanswer(struct reslist *rptr, HEADER *hptr, unsigned char *buf, GETLONG(ttl, cp); GETSHORT(dlen, cp); rptr->re_type = type; + (void)ttl; /* unused */ switch(type) {