Commit a4567679 authored by Simon Morlat's avatar Simon Morlat
Browse files

TRUE and FALSE are not defined in dns.c

parent 68eb77e1
...@@ -3515,12 +3515,12 @@ static int dns_hosts_add_localhost(struct dns_hosts *hosts) { ...@@ -3515,12 +3515,12 @@ static int dns_hosts_add_localhost(struct dns_hosts *hosts) {
ent.af = AF_INET; ent.af = AF_INET;
dns_inet_pton(ent.af, "127.0.0.1", &ent.addr); dns_inet_pton(ent.af, "127.0.0.1", &ent.addr);
dns_d_anchor(ent.host, sizeof(ent.host), "localhost", 9); dns_d_anchor(ent.host, sizeof(ent.host), "localhost", 9);
dns_hosts_insert(hosts, ent.af, &ent.addr, ent.host, FALSE); dns_hosts_insert(hosts, ent.af, &ent.addr, ent.host, 0);
memset(&ent, '\0', sizeof(ent)); memset(&ent, '\0', sizeof(ent));
ent.af = AF_INET6; ent.af = AF_INET6;
dns_inet_pton(ent.af, "::1", &ent.addr); dns_inet_pton(ent.af, "::1", &ent.addr);
dns_d_anchor(ent.host, sizeof(ent.host), "localhost", 9); dns_d_anchor(ent.host, sizeof(ent.host), "localhost", 9);
dns_hosts_insert(hosts, ent.af, &ent.addr, ent.host, TRUE); dns_hosts_insert(hosts, ent.af, &ent.addr, ent.host, 1);
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment