summaryrefslogtreecommitdiff
path: root/bin/named/builtin.c
diff options
context:
space:
mode:
authorInternet Software Consortium, Inc <@isc.org>2012-10-29 07:27:43 -0600
committerInternet Software Consortium, Inc <@isc.org>2012-10-29 07:27:43 -0600
commit56b61b7cd52fdce3fd477a28c8dd55db76eba042 (patch)
tree5619c48ff3e920b87bc1c1a2de09ba68426c38bf /bin/named/builtin.c
parentc450e7bf1c721a84ef09d825e79cf998159decc0 (diff)
downloadbind9-56b61b7cd52fdce3fd477a28c8dd55db76eba042.tar.gz
9.9.2
Diffstat (limited to 'bin/named/builtin.c')
-rw-r--r--bin/named/builtin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/named/builtin.c b/bin/named/builtin.c
index ceafe5d6..4604cb3c 100644
--- a/bin/named/builtin.c
+++ b/bin/named/builtin.c
@@ -99,9 +99,9 @@ static size_t
dns64_rdata(unsigned char *v, size_t start, unsigned char *rdata) {
size_t i, j = 0;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < 4U; i++) {
unsigned char c = v[start++];
- if (start == 7)
+ if (start == 7U)
start++;
if (c > 99) {
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;
j = nlen;
memset(v, 0, sizeof(v));
- while (j != 0) {
+ while (j != 0U) {
INSIST((i/2) < sizeof(v));
if (ndata[0] != 1)
return (ISC_R_NOTFOUND);