Commit af6dfd76 authored by Bob Halley's avatar Bob Halley
Browse files

eliminate compiler warnings (char vs. uchar)

parent 7c0876aa
......@@ -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, &region);
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);
}
......
......@@ -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, &region);
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);
}
......
......@@ -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, &region);
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);
}
......
......@@ -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, &region);
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);
}
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment