]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix sign comparison warning on FreeBSD.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Aug 2021 12:13:37 +0000 (14:13 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 3 Aug 2021 12:13:37 +0000 (14:13 +0200)
daemon/unbound.c
doc/Changelog

index 78771dbddfc938615c4a50be90e23c7c90b6b6a3..934a96c8068b0d8ad4b3808079092ed4afb594fd 100644 (file)
@@ -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);
                }
        }
index c8c9b70410ae41fb17ea89cf27cc9b0879ac1eda..15a2b00b74c8d142d1a5ad4621717c73a5e571cd 100644 (file)
@@ -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