From c639dc956a14d5db4b281676e8ccf08030bf0ccf Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 3 Aug 2021 14:13:37 +0200 Subject: [PATCH] - Fix sign comparison warning on FreeBSD. --- daemon/unbound.c | 2 +- doc/Changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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