From: Mark Andrews Date: Thu, 23 Aug 2012 21:32:50 +0000 (+1000) Subject: unsigned constants X-Git-Tag: v9.8.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=791e07dc39cc06e89fead7dcd0d6f83515a6a704;p=thirdparty%2Fbind9.git unsigned constants --- diff --git a/bin/named/builtin.c b/bin/named/builtin.c index 754e73d3250..14204cd295c 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);