From: Mark Andrews Date: Fri, 21 Nov 2014 09:28:17 +0000 (+1100) Subject: silence signed/unsigned warning X-Git-Tag: v9.11.0a1~1234 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=70bceacc808d0a20401fc3ba6d8ff79044ee3d63;p=thirdparty%2Fbind9.git silence signed/unsigned warning --- diff --git a/lib/isc/unix/file.c b/lib/isc/unix/file.c index 06c9842eb16..74fdd4cbad3 100644 --- a/lib/isc/unix/file.c +++ b/lib/isc/unix/file.c @@ -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 */