mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-21 22:28:34 -04:00
silence signed/unsigned warning
This commit is contained in:
parent
d65fb496fb
commit
70bceacc80
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue