From: W.C.A. Wijngaards Date: Tue, 3 Aug 2021 12:13:37 +0000 (+0200) Subject: - Fix sign comparison warning on FreeBSD. X-Git-Tag: release-1.13.2rc1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c639dc956a14d5db4b281676e8ccf08030bf0ccf;p=thirdparty%2Funbound.git - Fix sign comparison warning on FreeBSD. --- diff --git a/daemon/unbound.c b/daemon/unbound.c index 78771dbdd..934a96c80 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -222,7 +222,7 @@ checkrlimits(struct config_file* cfg) #endif if(getrlimit(RLIMIT_DATA, &rlim) == 0) { if(rlim.rlim_cur != (rlim_t)RLIM_INFINITY && - rlim.rlim_cur < memsize_expect) { + rlim.rlim_cur < (rlim_t)memsize_expect) { log_warn("the ulimit(data seg size) is smaller than the expected memory usage (added size of caches). %u < %u bytes", (unsigned)rlim.rlim_cur, (unsigned)memsize_expect); } } diff --git a/doc/Changelog b/doc/Changelog index c8c9b7041..15a2b00b7 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -7,6 +7,7 @@ function that need to reuse the dns answer. - Annotate assertion into error printout; we think it may be an error, but the situation looks harmless. + - Fix sign comparison warning on FreeBSD. 2 August 2021: Wouter - Prepare for OpenSSL 3.0.0 provider API usage, move the sldns