the region passed to dns_name_fromregion() can be const.

This commit is contained in:
Brian Wellington 2002-03-14 00:36:07 +00:00
parent 3c5f4710cf
commit 6585d8782b
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: name.h,v 1.99 2002/02/20 03:34:33 marka Exp $ */
/* $Id: name.h,v 1.100 2002/03/14 00:36:07 bwelling Exp $ */
#ifndef DNS_NAME_H
#define DNS_NAME_H 1
@ -706,7 +706,7 @@ dns_name_clone(dns_name_t *source, dns_name_t *target);
***/
void
dns_name_fromregion(dns_name_t *name, isc_region_t *r);
dns_name_fromregion(dns_name_t *name, const isc_region_t *r);
/*
* Make 'name' refer to region 'r'.
*

View file

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: name.c,v 1.132 2002/02/26 12:43:38 marka Exp $ */
/* $Id: name.c,v 1.133 2002/03/14 00:36:06 bwelling Exp $ */
#include <config.h>
@ -1068,7 +1068,7 @@ dns_name_clone(dns_name_t *source, dns_name_t *target) {
}
void
dns_name_fromregion(dns_name_t *name, isc_region_t *r) {
dns_name_fromregion(dns_name_t *name, const isc_region_t *r) {
unsigned char *offsets;
dns_offsets_t odata;
unsigned int len;