]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence signed/unsigned warning
authorMark Andrews <marka@isc.org>
Fri, 21 Nov 2014 09:28:17 +0000 (20:28 +1100)
committerMark Andrews <marka@isc.org>
Fri, 21 Nov 2014 09:28:17 +0000 (20:28 +1100)
lib/isc/unix/file.c

index 06c9842eb163f81e8676e4309327f0ff69ebcfc1..74fdd4cbad3f4fa0365e77c6a3a7ef0640955558 100644 (file)
@@ -719,7 +719,7 @@ isc_file_sanitize(const char *dir, const char *base, const char *ext,
         * allow room for a full sha256 hash (64 chars
         * plus null terminator)
         */
-       if (l < 65)
+       if (l < 65U)
                l = 65;
 
        if (dir != NULL)
@@ -727,7 +727,7 @@ isc_file_sanitize(const char *dir, const char *base, const char *ext,
        if (ext != NULL)
                l += strlen(ext) + 1;
 
-       if (l > length || l > PATH_MAX)
+       if (l > length || l > (unsigned)PATH_MAX)
                return (ISC_R_NOSPACE);
 
        /* Check whether the full-length SHA256 hash filename exists */