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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user