]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use unsigned constants
authorMark Andrews <marka@isc.org>
Wed, 12 Feb 2014 20:48:44 +0000 (07:48 +1100)
committerMark Andrews <marka@isc.org>
Wed, 12 Feb 2014 20:48:44 +0000 (07:48 +1100)
bin/dnssec/dnssectool.c

index a1c09bab2f9b09bdcfef576aca10dec7ee7a1903..a9cf5f838729d809e69dcb3593b10e4390813d9c 100644 (file)
@@ -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)