2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Merged VS 2015 64 bit warnings (#40373)

This commit is contained in:
Francis Dupont
2015-11-16 17:47:10 +01:00
parent 0d44dd6131
commit dd784c18ef
15 changed files with 70 additions and 35 deletions

View File

@@ -2860,7 +2860,9 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
if (max_cache_size == SIZE_AS_PERCENT) {
isc_uint64_t totalphys = isc_meminfo_totalphys();
max_cache_size = totalphys * max_cache_size_percent/100;
max_cache_size =
(size_t) (totalphys * max_cache_size_percent/100);
if (totalphys == 0) {
cfg_obj_log(obj, ns_g_lctx,
ISC_LOG_WARNING,
@@ -2871,10 +2873,10 @@ configure_view(dns_view_t *view, dns_viewlist_t *viewlist,
cfg_obj_log(obj, ns_g_lctx,
ISC_LOG_INFO,
"'max-cache-size %d%%' "
"- setting to %zuMB (out of %luMB)",
"- setting to %zuMB (out of %zuMB)",
max_cache_size_percent,
max_cache_size / (1024*1024),
(unsigned long) totalphys / (1024*1024));
(size_t) (totalphys / (1024*1024)));
}
}