Commit f1a6c8e7 authored by Francis Dupont's avatar Francis Dupont
Browse files

WIN32 master fixes

parent fd75aaa2
......@@ -3167,7 +3167,7 @@ process_sit(dig_lookup_t *l, isc_buffer_t *optbuf, size_t optlen) {
printf(";; Warning: SIT client cookie part mis-match\n");
} else
printf(";; Warning: SIT bad token (too short)\n");
isc_buffer_forward(optbuf, optlen);
isc_buffer_forward(optbuf, (unsigned int)optlen);
}
static void
......
......@@ -1644,7 +1644,7 @@ process_sit(ns_client_t *client, isc_buffer_t *buf, size_t optlen) {
memcpy(client->cookie, isc_buffer_current(buf), 8);
else
memset(client->cookie, 0, 8);
isc_buffer_forward(buf, optlen);
isc_buffer_forward(buf, (unsigned int)optlen);
if (optlen == 8)
isc_stats_increment(ns_g_server->nsstats,
......
......@@ -4282,7 +4282,7 @@ dns_adb_setsit(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
if (addr->entry->sit == NULL && sit != NULL && len != 0U) {
addr->entry->sit = isc_mem_get(adb->mctx, len);
if (addr->entry->sit != NULL)
addr->entry->sitlen = len;
addr->entry->sitlen = (isc_uint16_t)len;
}
if (addr->entry->sit != NULL)
......
......@@ -2076,7 +2076,7 @@ resquery_send(resquery_t *query) {
if (reqsit) {
INSIST(ednsopt < EDNSOPTS);
ednsopts[ednsopt].code = DNS_OPT_SIT;
ednsopts[ednsopt].length =
ednsopts[ednsopt].length = (isc_uint16_t)
dns_adb_getsit(fctx->adb,
query->addrinfo,
sit, sizeof(sit));
......
......@@ -496,6 +496,7 @@ dns_peer_setquerydscp
dns_peer_setquerysource
dns_peer_setrequestixfr
dns_peer_setrequestnsid
dns_peer_setrequestsit
dns_peer_setsupportedns
dns_peer_settransferdscp
dns_peer_settransferformat
......@@ -870,6 +871,7 @@ dns_zone_getjournalsize
dns_zone_getkeydirectory
dns_zone_getkeyopts
dns_zone_getloadtime
dns_zone_getmaxttl
dns_zone_getmaxxfrin
dns_zone_getmaxxfrout
dns_zone_getmctx
......@@ -880,6 +882,7 @@ dns_zone_getnotifysrc4dscp
dns_zone_getnotifysrc6
dns_zone_getnotifysrc6dscp
dns_zone_getoptions
dns_zone_getoptions2
dns_zone_getorigin
dns_zone_getprivatetype
dns_zone_getqueryacl
......@@ -961,6 +964,7 @@ dns_zone_setmasters
dns_zone_setmasterswithkeys
dns_zone_setmaxrefreshtime
dns_zone_setmaxretrytime
dns_zone_setmaxttl
dns_zone_setmaxxfrin
dns_zone_setmaxxfrout
dns_zone_setminrefreshtime
......@@ -975,6 +979,7 @@ dns_zone_setnotifysrc6dscp
dns_zone_setnotifytype
dns_zone_setnsec3param
dns_zone_setoption
dns_zone_setoption2
dns_zone_setorigin
dns_zone_setprivatetype
dns_zone_setqueryacl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment