]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2511. [cleanup] dns_rdata_tofmttext() add const to linebreak.
authorMark Andrews <marka@isc.org>
Fri, 12 Dec 2008 04:37:24 +0000 (04:37 +0000)
committerMark Andrews <marka@isc.org>
Fri, 12 Dec 2008 04:37:24 +0000 (04:37 +0000)
                        [RT #18885]

CHANGES
lib/dns/include/dns/rdata.h
lib/dns/rdata.c

diff --git a/CHANGES b/CHANGES
index a57776077fce34376c9c732b04f7c065f3c6340a..4e729e2f3818defc052b26e4042ff22663097be7 100644 (file)
--- 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]
 
index 6ea185001c24f313a5741af806e165bcf8e586b0..a3bb69eebf8e7250c6c99bf46ec4629917e20c55 100644 (file)
@@ -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();
index d35900b4f9ff40df2a01afdc0ea1262395158cf2..032c3d8ccdf2f60d1558c18013f9c125987506bd 100644 (file)
@@ -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;