diff --git a/CHANGES b/CHANGES index a57776077f..4e729e2f38 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2511. [cleanup] dns_rdata_tofmttext() add const to linebreak. + [RT #18885] + 2510. [bug] "dig +sigchase" could trigger REQUIRE failures. [RT #19033] diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h index 6ea185001c..a3bb69eebf 100644 --- a/lib/dns/include/dns/rdata.h +++ b/lib/dns/include/dns/rdata.h @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.h,v 1.70 2008/04/02 02:37:42 marka Exp $ */ +/* $Id: rdata.h,v 1.71 2008/12/12 04:37:24 marka Exp $ */ #ifndef DNS_RDATA_H #define DNS_RDATA_H 1 @@ -385,7 +385,8 @@ dns_rdata_totext(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target); isc_result_t dns_rdata_tofmttext(dns_rdata_t *rdata, dns_name_t *origin, unsigned int flags, - unsigned int width, char *linebreak, isc_buffer_t *target); + unsigned int width, const char *linebreak, + isc_buffer_t *target); /*%< * Like dns_rdata_totext, but do formatted output suitable for * database dumps. This is intended for use by dns_db_dump(); diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index d35900b4f9..032c3d8ccd 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rdata.c,v 1.199 2008/09/24 02:46:22 marka Exp $ */ +/* $Id: rdata.c,v 1.200 2008/12/12 04:37:23 marka Exp $ */ /*! \file */ @@ -735,7 +735,7 @@ dns_rdata_totext(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) isc_result_t dns_rdata_tofmttext(dns_rdata_t *rdata, dns_name_t *origin, unsigned int flags, unsigned int width, - char *linebreak, isc_buffer_t *target) + const char *linebreak, isc_buffer_t *target) { dns_rdata_textctx_t tctx;