From 26b0f58b6c4d65bc8b131debf40b8c376c2978bf Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Wed, 20 Jan 1999 02:41:11 +0000 Subject: [PATCH] use the active region instead of the remaining region --- lib/dns/rdata.c | 6 +++--- lib/dns/rdata/generic/mx_15.c | 4 ++-- lib/dns/rdata/generic/mx_15.h | 4 ++-- lib/dns/rdata/generic/soa_6.c | 4 ++-- lib/dns/rdata/generic/soa_6.h | 4 ++-- lib/dns/rdata/in_1/a_1.c | 4 ++-- lib/dns/rdata/in_1/a_1.h | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index e7de7c036f..51ae8f3ff6 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: rdata.c,v 1.3 1999/01/19 05:38:31 marka Exp $ */ + /* $Id: rdata.c,v 1.4 1999/01/20 02:41:10 halley Exp $ */ #include #include @@ -327,7 +327,7 @@ txt_fromwire(isc_buffer_t *source, isc_buffer_t *target) { isc_region_t sregion; isc_region_t tregion; - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); n = *sregion.base + 1; if (n > sregion.length) return (DNS_R_UNKNOWN); @@ -387,7 +387,7 @@ str_totext(char *source, isc_buffer_t *target) { static isc_boolean_t buffer_empty(isc_buffer_t *source) { - return((source->current == source->used) ? ISC_TRUE : ISC_FALSE); + return((source->current == source->active) ? ISC_TRUE : ISC_FALSE); } static void diff --git a/lib/dns/rdata/generic/mx_15.c b/lib/dns/rdata/generic/mx_15.c index 2935b2e63f..95d0877d19 100644 --- a/lib/dns/rdata/generic/mx_15.c +++ b/lib/dns/rdata/generic/mx_15.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: mx_15.c,v 1.4 1999/01/19 06:49:31 marka Exp $ */ + /* $Id: mx_15.c,v 1.5 1999/01/20 02:41:10 halley Exp $ */ #ifndef RDATA_GENERIC_MX_15_H #define RDATA_GENERIC_MX_15_H @@ -99,7 +99,7 @@ fromwire_mx(dns_rdataclass_t class, dns_rdatatype_t type, dns_name_init(&name, NULL); - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (tregion.length < 2) return (DNS_R_NOSPACE); diff --git a/lib/dns/rdata/generic/mx_15.h b/lib/dns/rdata/generic/mx_15.h index b35ea56818..a9bae9d3a7 100644 --- a/lib/dns/rdata/generic/mx_15.h +++ b/lib/dns/rdata/generic/mx_15.h @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: mx_15.h,v 1.4 1999/01/19 06:49:31 marka Exp $ */ + /* $Id: mx_15.h,v 1.5 1999/01/20 02:41:10 halley Exp $ */ #ifndef RDATA_GENERIC_MX_15_H #define RDATA_GENERIC_MX_15_H @@ -99,7 +99,7 @@ fromwire_mx(dns_rdataclass_t class, dns_rdatatype_t type, dns_name_init(&name, NULL); - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (tregion.length < 2) return (DNS_R_NOSPACE); diff --git a/lib/dns/rdata/generic/soa_6.c b/lib/dns/rdata/generic/soa_6.c index ff04feddc4..e47c423ae3 100644 --- a/lib/dns/rdata/generic/soa_6.c +++ b/lib/dns/rdata/generic/soa_6.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: soa_6.c,v 1.4 1999/01/19 06:49:32 marka Exp $ */ + /* $Id: soa_6.c,v 1.5 1999/01/20 02:41:11 halley Exp $ */ #ifndef RDATA_GENERIC_SOA_6_H #define RDATA_GENERIC_SOA_6_H @@ -155,7 +155,7 @@ fromwire_soa(dns_rdataclass_t class, dns_rdatatype_t type, if (result != DNS_R_SUCCESS) return (result); - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (sregion.length != 20) diff --git a/lib/dns/rdata/generic/soa_6.h b/lib/dns/rdata/generic/soa_6.h index 2dc03a105b..025e198c9e 100644 --- a/lib/dns/rdata/generic/soa_6.h +++ b/lib/dns/rdata/generic/soa_6.h @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: soa_6.h,v 1.4 1999/01/19 06:49:32 marka Exp $ */ + /* $Id: soa_6.h,v 1.5 1999/01/20 02:41:11 halley Exp $ */ #ifndef RDATA_GENERIC_SOA_6_H #define RDATA_GENERIC_SOA_6_H @@ -155,7 +155,7 @@ fromwire_soa(dns_rdataclass_t class, dns_rdatatype_t type, if (result != DNS_R_SUCCESS) return (result); - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (sregion.length != 20) diff --git a/lib/dns/rdata/in_1/a_1.c b/lib/dns/rdata/in_1/a_1.c index ea7c8e7fd3..77aef68e01 100644 --- a/lib/dns/rdata/in_1/a_1.c +++ b/lib/dns/rdata/in_1/a_1.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: a_1.c,v 1.3 1999/01/19 06:49:33 marka Exp $ */ + /* $Id: a_1.c,v 1.4 1999/01/20 02:41:11 halley Exp $ */ #ifndef RDATA_IN_1_A_1_H #define RDATA_IN_1_A_1_H @@ -88,7 +88,7 @@ fromwire_in_a(dns_rdataclass_t class, dns_rdatatype_t type, downcase = downcase; /* unused */ - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (sregion.length != 4) return (DNS_R_WIRE); diff --git a/lib/dns/rdata/in_1/a_1.h b/lib/dns/rdata/in_1/a_1.h index 2481b47d89..9313344469 100644 --- a/lib/dns/rdata/in_1/a_1.h +++ b/lib/dns/rdata/in_1/a_1.h @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: a_1.h,v 1.3 1999/01/19 06:49:33 marka Exp $ */ + /* $Id: a_1.h,v 1.4 1999/01/20 02:41:11 halley Exp $ */ #ifndef RDATA_IN_1_A_1_H #define RDATA_IN_1_A_1_H @@ -88,7 +88,7 @@ fromwire_in_a(dns_rdataclass_t class, dns_rdatatype_t type, downcase = downcase; /* unused */ - isc_buffer_remaining(source, &sregion); + isc_buffer_active(source, &sregion); isc_buffer_available(target, &tregion); if (sregion.length != 4) return (DNS_R_WIRE);