remove c++ comments from Jan Kneschke

svn:r373
This commit is contained in:
Niels Provos 2007-07-30 23:53:10 +00:00
parent 10267216a6
commit 7c6df310c9
3 changed files with 368 additions and 365 deletions

727
evdns.c

File diff suppressed because it is too large Load Diff

View File

@ -364,4 +364,4 @@ int evdns_server_request_drop(struct evdns_server_request *req);
struct sockaddr;
int evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, struct sockaddr *sa, int addr_len);
#endif // !EVENTDNS_H
#endif /* !EVENTDNS_H */

View File

@ -179,7 +179,7 @@ dns_server_request_cb(struct evdns_server_request *req, void *data)
const char TEST_ARPA[] = "11.11.168.192.in-addr.arpa";
for (i = 0; i < req->nquestions; ++i) {
struct in_addr ans;
ans.s_addr = htonl(0xc0a80b0bUL); // 192.168.11.11
ans.s_addr = htonl(0xc0a80b0bUL); /* 192.168.11.11 */
if (req->questions[i]->type == EVDNS_TYPE_A &&
req->questions[i]->class == EVDNS_CLASS_INET &&
!strcmp(req->questions[i]->name, "zz.example.com")) {
@ -325,7 +325,7 @@ dns_server()
dns_server_gethostbyname_cb, NULL);
evdns_resolve_ipv6("zz.example.com", DNS_QUERY_NO_SEARCH,
dns_server_gethostbyname_cb, NULL);
resolve_addr.s_addr = htonl(0xc0a80b0bUL); // 192.168.11.11
resolve_addr.s_addr = htonl(0xc0a80b0bUL); /* 192.168.11.11 */
evdns_resolve_reverse(&resolve_addr, 0,
dns_server_gethostbyname_cb, NULL);