diff --git a/lib/dns/include/dns/view.h b/lib/dns/include/dns/view.h index 394cc9ae4d..84532a96a0 100644 --- a/lib/dns/include/dns/view.h +++ b/lib/dns/include/dns/view.h @@ -95,8 +95,8 @@ struct dns_view { (view)->magic == DNS_VIEW_MAGIC) isc_result_t -dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, char *name, - dns_view_t **viewp); +dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, + const char *name, dns_view_t **viewp); /* * Create a view. * diff --git a/lib/dns/view.c b/lib/dns/view.c index dd5a05a0d7..c710ec1d5a 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -37,8 +37,8 @@ #include "../isc/util.h" /* XXXRTH */ isc_result_t -dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, char *name, - dns_view_t **viewp) +dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, + const char *name, dns_view_t **viewp) { dns_view_t *view; isc_result_t result;