2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

eliminate compiler warnings (char vs. uchar)

This commit is contained in:
Bob Halley 1999-02-02 01:17:49 +00:00
parent 7c0876aa42
commit af6dfd762e
6 changed files with 20 additions and 18 deletions

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 #ifndef RDATA_IN_1_A_1_H
#define 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, &region); isc_buffer_available(target, &region);
if (isc_inet_ntop(AF_INET, rdata->data, if (isc_inet_ntop(AF_INET, rdata->data,
region.base, region.length) == NULL) (char *)region.base, region.length) == NULL)
return (DNS_R_NOSPACE); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(region.base)); isc_buffer_add(target, strlen((char *)region.base));
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 #ifndef RDATA_IN_1_A_1_H
#define 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, &region); isc_buffer_available(target, &region);
if (isc_inet_ntop(AF_INET, rdata->data, if (isc_inet_ntop(AF_INET, rdata->data,
region.base, region.length) == NULL) (char *)region.base, region.length) == NULL)
return (DNS_R_NOSPACE); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(region.base)); isc_buffer_add(target, strlen((char *)region.base));
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 */ /* 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, &region); isc_buffer_available(target, &region);
if (isc_inet_ntop(AF_INET6, rdata->data, if (isc_inet_ntop(AF_INET6, rdata->data,
region.base, region.length) == NULL) (char *)region.base, region.length) == NULL)
return (DNS_R_NOSPACE); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(region.base)); isc_buffer_add(target, strlen((char *)region.base));
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 */ /* 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, &region); isc_buffer_available(target, &region);
if (isc_inet_ntop(AF_INET6, rdata->data, if (isc_inet_ntop(AF_INET6, rdata->data,
region.base, region.length) == NULL) (char *)region.base, region.length) == NULL)
return (DNS_R_NOSPACE); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(region.base)); isc_buffer_add(target, strlen((char *)region.base));
return (DNS_R_SUCCESS); return (DNS_R_SUCCESS);
} }

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 #ifndef RDATA_IN_1_WKS_11_H
#define 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; origin = origin;
dns_rdata_toregion(rdata, &sr); dns_rdata_toregion(rdata, &sr);
isc_buffer_available(target, &tr); 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); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(tr.base)); isc_buffer_add(target, strlen((char *)tr.base));
isc_region_consume(&sr, 4); isc_region_consume(&sr, 4);
proto = uint16_fromregion(&sr); proto = uint16_fromregion(&sr);

View File

@ -15,7 +15,7 @@
* SOFTWARE. * 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 #ifndef RDATA_IN_1_WKS_11_H
#define 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; origin = origin;
dns_rdata_toregion(rdata, &sr); dns_rdata_toregion(rdata, &sr);
isc_buffer_available(target, &tr); 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); return (DNS_R_NOSPACE);
isc_buffer_add(target, strlen(tr.base)); isc_buffer_add(target, strlen((char *)tr.base));
isc_region_consume(&sr, 4); isc_region_consume(&sr, 4);
proto = uint16_fromregion(&sr); proto = uint16_fromregion(&sr);