Clean-up routing table design.

This commit is contained in:
Gregory Nutt 2013-10-05 12:05:51 -06:00
parent 09fe37c5ac
commit 31a0c289d7

View File

@ -273,7 +273,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
char buffer[RECV_BUFFER_SIZE];
struct dns_answer *ans;
struct dns_hdr *hdr;
#if 0 /* Not used */
uint8_t nquestions;
#endif
uint8_t nanswers;
int ret;
@ -305,7 +307,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
* and the extrarr are simply discarded.
*/
#if 0 /* Not used */
nquestions = htons(hdr->numquestions);
#endif
nanswers = htons(hdr->numanswers);
/* Skip the name in the question. XXX: This should really be