- Fix sign comparison warning on FreeBSD.

This commit is contained in:
W.C.A. Wijngaards 2021-08-03 14:13:37 +02:00
parent 2a0df9e72e
commit c639dc956a
2 changed files with 2 additions and 1 deletions

View 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);
}
}

View 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