2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

(char *) -> (unsigned char *)

This commit is contained in:
Mark Andrews
2006-03-03 04:46:14 +00:00
parent 1c25cad9bd
commit 10b03beca1

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: rbtdb.c,v 1.229 2006/03/03 03:02:55 marka Exp $ */ /* $Id: rbtdb.c,v 1.230 2006/03/03 04:46:14 marka Exp $ */
/*! \file */ /*! \file */
@@ -5667,7 +5667,7 @@ rdataset_next(dns_rdataset_t *rdataset) {
raw += length + 4; raw += length + 4;
rdataset->private5 = raw; rdataset->private5 = raw;
} else } else
rdataset->private5 = (char*)rdataset->private5 + 4; rdataset->private5 = (unsigned char *)rdataset->private5 + 4;
return (ISC_R_SUCCESS); return (ISC_R_SUCCESS);
} }
@@ -5683,7 +5683,7 @@ rdataset_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata) {
if ((rdataset->attributes & DNS_RDATASETATTR_LOADORDER) != 0) { if ((rdataset->attributes & DNS_RDATASETATTR_LOADORDER) != 0) {
offset = (raw[0] << 24) + (raw[1] << 16) + offset = (raw[0] << 24) + (raw[1] << 16) +
(raw[2] << 8) + raw[3]; (raw[2] << 8) + raw[3];
raw = (char *)rdataset->private3 + offset; raw = (unsigned char *)rdataset->private3 + offset;
} }
r.length = raw[0] * 256 + raw[1]; r.length = raw[0] * 256 + raw[1];
raw += 4; raw += 4;