From 579f9be3f95eebfaa5d68923157bb628cd7fc481 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 27 Jan 2012 12:39:33 +0000 Subject: [PATCH] const origin --- lib/dns/include/dns/name.h | 4 ++-- lib/dns/name.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/include/dns/name.h b/lib/dns/include/dns/name.h index a3e29bd041..a2421629d2 100644 --- a/lib/dns/include/dns/name.h +++ b/lib/dns/include/dns/name.h @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.h,v 1.126.332.5 2010/07/09 23:45:55 tbox Exp $ */ +/* $Id: name.h,v 1.126.332.6 2012/01/27 12:39:33 marka Exp $ */ #ifndef DNS_NAME_H #define DNS_NAME_H 1 @@ -750,7 +750,7 @@ dns_name_towire(const dns_name_t *name, dns_compress_t *cctx, isc_result_t dns_name_fromtext(dns_name_t *name, isc_buffer_t *source, - dns_name_t *origin, unsigned int options, + const dns_name_t *origin, unsigned int options, isc_buffer_t *target); /*%< * Convert the textual representation of a DNS name at source diff --git a/lib/dns/name.c b/lib/dns/name.c index deb16d1928..30b95a16ac 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.c,v 1.165.120.5 2011/03/12 04:57:27 tbox Exp $ */ +/* $Id: name.c,v 1.165.120.6 2012/01/27 12:39:33 marka Exp $ */ /*! \file */ @@ -1021,7 +1021,7 @@ dns_name_toregion(dns_name_t *name, isc_region_t *r) { isc_result_t dns_name_fromtext(dns_name_t *name, isc_buffer_t *source, - dns_name_t *origin, unsigned int options, + const dns_name_t *origin, unsigned int options, isc_buffer_t *target) { unsigned char *ndata, *label = NULL;