From: Mark Andrews Date: Wed, 12 Feb 2014 20:48:44 +0000 (+1100) Subject: use unsigned constants X-Git-Tag: v9.10.0b1~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5deedd70571f9a054149f2652ad54494ca720bf3;p=thirdparty%2Fbind9.git use unsigned constants --- diff --git a/bin/dnssec/dnssectool.c b/bin/dnssec/dnssectool.c index a1c09bab2f9..a9cf5f83872 100644 --- a/bin/dnssec/dnssectool.c +++ b/bin/dnssec/dnssectool.c @@ -352,14 +352,14 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base, * [+-]offset */ n = strspn(str, "0123456789"); - if ((n == 8 || n == 14) && + if ((n == 8u || n == 14u) && (str[n] == '\0' || str[n] == '-' || str[n] == '+')) { char timestr[15]; strlcpy(timestr, str, sizeof(timestr)); timestr[n] = 0; - if (n == 8) + if (n == 8u) strlcat(timestr, "000000", sizeof(timestr)); result = dns_time64_fromtext(timestr, &val); if (result != ISC_R_SUCCESS)