From af6dfd762ef13de674c84f70488067ae78d2573e Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 2 Feb 1999 01:17:49 +0000 Subject: [PATCH] eliminate compiler warnings (char vs. uchar) --- lib/dns/rdata/in_1/a_1.c | 6 +++--- lib/dns/rdata/in_1/a_1.h | 6 +++--- lib/dns/rdata/in_1/aaaa_28.c | 6 +++--- lib/dns/rdata/in_1/aaaa_28.h | 6 +++--- lib/dns/rdata/in_1/wks_11.c | 7 ++++--- lib/dns/rdata/in_1/wks_11.h | 7 ++++--- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/lib/dns/rdata/in_1/a_1.c b/lib/dns/rdata/in_1/a_1.c index 6ce6eff81b..ee6bd97034 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.9 1999/01/30 04:27:47 explorer Exp $ */ + /* $Id: a_1.c,v 1.10 1999/02/02 01:17:48 halley Exp $ */ #ifndef RDATA_IN_1_A_1_H #define RDATA_IN_1_A_1_H @@ -68,10 +68,10 @@ totext_in_a(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { isc_buffer_available(target, ®ion); if (isc_inet_ntop(AF_INET, rdata->data, - region.base, region.length) == NULL) + (char *)region.base, region.length) == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(region.base)); + isc_buffer_add(target, strlen((char *)region.base)); return (DNS_R_SUCCESS); } diff --git a/lib/dns/rdata/in_1/a_1.h b/lib/dns/rdata/in_1/a_1.h index e4c9e916c3..e9c757c5dd 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.9 1999/01/30 04:27:47 explorer Exp $ */ + /* $Id: a_1.h,v 1.10 1999/02/02 01:17:48 halley Exp $ */ #ifndef RDATA_IN_1_A_1_H #define RDATA_IN_1_A_1_H @@ -68,10 +68,10 @@ totext_in_a(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { isc_buffer_available(target, ®ion); if (isc_inet_ntop(AF_INET, rdata->data, - region.base, region.length) == NULL) + (char *)region.base, region.length) == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(region.base)); + isc_buffer_add(target, strlen((char *)region.base)); return (DNS_R_SUCCESS); } diff --git a/lib/dns/rdata/in_1/aaaa_28.c b/lib/dns/rdata/in_1/aaaa_28.c index c8a5fd32a3..075954124d 100644 --- a/lib/dns/rdata/in_1/aaaa_28.c +++ b/lib/dns/rdata/in_1/aaaa_28.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: aaaa_28.c,v 1.2 1999/02/02 00:38:50 halley Exp $ */ + /* $Id: aaaa_28.c,v 1.3 1999/02/02 01:17:48 halley Exp $ */ /* RFC 1886 */ @@ -70,10 +70,10 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { isc_buffer_available(target, ®ion); if (isc_inet_ntop(AF_INET6, rdata->data, - region.base, region.length) == NULL) + (char *)region.base, region.length) == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(region.base)); + isc_buffer_add(target, strlen((char *)region.base)); return (DNS_R_SUCCESS); } diff --git a/lib/dns/rdata/in_1/aaaa_28.h b/lib/dns/rdata/in_1/aaaa_28.h index ba7bcc715e..02977d9f16 100644 --- a/lib/dns/rdata/in_1/aaaa_28.h +++ b/lib/dns/rdata/in_1/aaaa_28.h @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: aaaa_28.h,v 1.2 1999/02/02 00:38:50 halley Exp $ */ + /* $Id: aaaa_28.h,v 1.3 1999/02/02 01:17:48 halley Exp $ */ /* RFC 1886 */ @@ -70,10 +70,10 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { isc_buffer_available(target, ®ion); if (isc_inet_ntop(AF_INET6, rdata->data, - region.base, region.length) == NULL) + (char *)region.base, region.length) == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(region.base)); + isc_buffer_add(target, strlen((char *)region.base)); return (DNS_R_SUCCESS); } diff --git a/lib/dns/rdata/in_1/wks_11.c b/lib/dns/rdata/in_1/wks_11.c index c681292eaf..30e3810832 100644 --- a/lib/dns/rdata/in_1/wks_11.c +++ b/lib/dns/rdata/in_1/wks_11.c @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: wks_11.c,v 1.5 1999/01/30 04:27:47 explorer Exp $ */ + /* $Id: wks_11.c,v 1.6 1999/02/02 01:17:49 halley Exp $ */ #ifndef RDATA_IN_1_WKS_11_H #define RDATA_IN_1_WKS_11_H @@ -125,9 +125,10 @@ totext_in_wks(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { origin = origin; dns_rdata_toregion(rdata, &sr); isc_buffer_available(target, &tr); - if (isc_inet_ntop(AF_INET, sr.base, tr.base, tr.length) == NULL) + if (isc_inet_ntop(AF_INET, sr.base, (char *)tr.base, tr.length) + == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(tr.base)); + isc_buffer_add(target, strlen((char *)tr.base)); isc_region_consume(&sr, 4); proto = uint16_fromregion(&sr); diff --git a/lib/dns/rdata/in_1/wks_11.h b/lib/dns/rdata/in_1/wks_11.h index 5a91edfd8c..75efe49529 100644 --- a/lib/dns/rdata/in_1/wks_11.h +++ b/lib/dns/rdata/in_1/wks_11.h @@ -15,7 +15,7 @@ * SOFTWARE. */ - /* $Id: wks_11.h,v 1.5 1999/01/30 04:27:47 explorer Exp $ */ + /* $Id: wks_11.h,v 1.6 1999/02/02 01:17:49 halley Exp $ */ #ifndef RDATA_IN_1_WKS_11_H #define RDATA_IN_1_WKS_11_H @@ -125,9 +125,10 @@ totext_in_wks(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) { origin = origin; dns_rdata_toregion(rdata, &sr); isc_buffer_available(target, &tr); - if (isc_inet_ntop(AF_INET, sr.base, tr.base, tr.length) == NULL) + if (isc_inet_ntop(AF_INET, sr.base, (char *)tr.base, tr.length) + == NULL) return (DNS_R_NOSPACE); - isc_buffer_add(target, strlen(tr.base)); + isc_buffer_add(target, strlen((char *)tr.base)); isc_region_consume(&sr, 4); proto = uint16_fromregion(&sr);