Skip to content
Snippets Groups Projects
Commit 31a0c289 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Clean-up routing table design.

parent 09fe37c5
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr) ...@@ -273,7 +273,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
char buffer[RECV_BUFFER_SIZE]; char buffer[RECV_BUFFER_SIZE];
struct dns_answer *ans; struct dns_answer *ans;
struct dns_hdr *hdr; struct dns_hdr *hdr;
#if 0 /* Not used */
uint8_t nquestions; uint8_t nquestions;
#endif
uint8_t nanswers; uint8_t nanswers;
int ret; int ret;
...@@ -305,7 +307,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr) ...@@ -305,7 +307,9 @@ int recv_response_socket(int sockfd, struct sockaddr_in *addr)
* and the extrarr are simply discarded. * and the extrarr are simply discarded.
*/ */
#if 0 /* Not used */
nquestions = htons(hdr->numquestions); nquestions = htons(hdr->numquestions);
#endif
nanswers = htons(hdr->numanswers); nanswers = htons(hdr->numanswers);
/* Skip the name in the question. XXX: This should really be /* Skip the name in the question. XXX: This should really be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment