mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
unsigned constants
This commit is contained in:
@@ -99,9 +99,9 @@ static size_t
|
|||||||
dns64_rdata(unsigned char *v, size_t start, unsigned char *rdata) {
|
dns64_rdata(unsigned char *v, size_t start, unsigned char *rdata) {
|
||||||
size_t i, j = 0;
|
size_t i, j = 0;
|
||||||
|
|
||||||
for (i = 0; i < 4; i++) {
|
for (i = 0; i < 4U; i++) {
|
||||||
unsigned char c = v[start++];
|
unsigned char c = v[start++];
|
||||||
if (start == 7)
|
if (start == 7U)
|
||||||
start++;
|
start++;
|
||||||
if (c > 99) {
|
if (c > 99) {
|
||||||
rdata[j++] = 3;
|
rdata[j++] = 3;
|
||||||
@@ -164,7 +164,7 @@ dns64_cname(const dns_name_t *zone, const dns_name_t *name,
|
|||||||
i = (nlen % 4) == 2U ? 1 : 0;
|
i = (nlen % 4) == 2U ? 1 : 0;
|
||||||
j = nlen;
|
j = nlen;
|
||||||
memset(v, 0, sizeof(v));
|
memset(v, 0, sizeof(v));
|
||||||
while (j != 0) {
|
while (j != 0U) {
|
||||||
INSIST((i/2) < sizeof(v));
|
INSIST((i/2) < sizeof(v));
|
||||||
if (ndata[0] != 1)
|
if (ndata[0] != 1)
|
||||||
return (ISC_R_NOTFOUND);
|
return (ISC_R_NOTFOUND);
|
||||||
|
Reference in New Issue
Block a user