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;
|
char **alias;
|
||||||
int class, type, dlen, len, ans = 0, n;
|
int class, type, dlen, len, ans = 0, n;
|
||||||
unsigned int ttl, dr, *adr;
|
unsigned int ttl, dr, *adr;
|
||||||
struct hent *hp;
|
|
||||||
|
|
||||||
cp = buf + HFIXEDSZ;
|
cp = buf + HFIXEDSZ;
|
||||||
adr = (unsigned int *)rptr->re_he.h_addr_list;
|
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)
|
while (*alias)
|
||||||
alias++;
|
alias++;
|
||||||
|
|
||||||
hp = &rptr->re_he;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Skip over the original question.
|
* Skip over the original question.
|
||||||
*/
|
*/
|
||||||
@@ -2621,6 +2617,7 @@ static int ar_procanswer(struct reslist *rptr, HEADER *hptr, unsigned char *buf,
|
|||||||
GETLONG(ttl, cp);
|
GETLONG(ttl, cp);
|
||||||
GETSHORT(dlen, cp);
|
GETSHORT(dlen, cp);
|
||||||
rptr->re_type = type;
|
rptr->re_type = type;
|
||||||
|
(void)ttl; /* unused */
|
||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user