]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_8] silence win32 warnings
authorEvan Hunt <each@isc.org>
Fri, 20 Jun 2014 21:15:27 +0000 (14:15 -0700)
committerEvan Hunt <each@isc.org>
Fri, 20 Jun 2014 21:15:27 +0000 (14:15 -0700)
lib/dns/adb.c

index 363c020d3be25b45a4c5a63b670ba7020477539d..2563d4a4757bc9c251f8bde5fc8f8c0e23cf260f 100644 (file)
@@ -3966,8 +3966,9 @@ adjustsrtt(dns_adbaddrinfo_t *addr, unsigned int rtt, unsigned int factor,
                new_srtt = (addr->entry->srtt / 10 * factor)
                        + (rtt / 10 * (10 - factor));
 
-       addr->entry->srtt = new_srtt;
-       addr->srtt = new_srtt;
+       new_srtt &= 0xffffffff;
+       addr->entry->srtt = (unsigned int) new_srtt;
+       addr->srtt = (unsigned int) new_srtt;
 
        if (addr->entry->expires == 0)
                addr->entry->expires = now + ADB_ENTRY_WINDOW;