Commit 0bb50204 authored by Remi Denis-Courmont's avatar Remi Denis-Courmont

Missing sres const qualifiers

darcs-hash:20061018070743-9301c-f27419cb7061510b2821006034670f925f2b0e3e.gz
parent e01e29b3
......@@ -991,7 +991,7 @@ sres_search(sres_resolver_t *res,
sres_query_t *sub;
int i, subs;
size_t len;
char const **domains = res->res_config->c_search;
char const *const *domains = res->res_config->c_search;
char search[SRES_MAXDNAME + 1];
memcpy(search, domain, dlen);
......@@ -1211,7 +1211,7 @@ sres_search_cached_answers(sres_resolver_t *res,
found = 1;
if (dots < res->res_config->c_opt.ndots) {
char const **domains = res->res_config->c_search;
char const *const *domains = res->res_config->c_search;
size_t dlen = strlen(domain);
for (i = 0; domains[i] && i < SRES_MAX_SEARCH; i++) {
......
......@@ -1107,7 +1107,7 @@ int test_cache(sres_context_t *ctx)
rr = result[i];
if (rr->sr_record->r_type == sres_type_naptr) {
sres_naptr_record_t *rr_naptr = rr->sr_naptr;
const sres_naptr_record_t *rr_naptr = rr->sr_naptr;
switch(rr_naptr->na_order) {
case 20:
TEST(rr_naptr->na_record->r_type, sres_type_naptr);
......
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