Silent WIN64 warnings (alrady fixed in master)

This commit is contained in:
Francis Dupont 2016-01-05 18:59:14 +01:00
parent e1b5692773
commit 2fe1325e3a
3 changed files with 3 additions and 4 deletions

View file

@ -1540,7 +1540,7 @@ inithash(dns_rbt_t *rbt) {
unsigned int bytes;
rbt->hashsize = RBT_HASH_SIZE;
bytes = rbt->hashsize * sizeof(dns_rbtnode_t *);
bytes = (unsigned int)rbt->hashsize * sizeof(dns_rbtnode_t *);
rbt->hashtable = isc_mem_get(rbt->mctx, bytes);
if (rbt->hashtable == NULL)
@ -1560,7 +1560,7 @@ rehash(dns_rbt_t *rbt) {
unsigned int hash;
unsigned int i;
oldsize = rbt->hashsize;
oldsize = (unsigned int)rbt->hashsize;
oldtable = rbt->hashtable;
rbt->hashsize = rbt->hashsize * 2 + 1;
rbt->hashtable = isc_mem_get(rbt->mctx,

View file

@ -58,7 +58,7 @@ fromtext_caa(ARGS_FROMTEXT) {
ISC_FALSE));
if (token.value.as_ulong > 255U)
RETTOK(ISC_R_RANGE);
flags = token.value.as_ulong;
flags = token.value.as_ulong & 255U;
RETERR(uint8_tobuffer(flags, target));
/*

View file

@ -1334,7 +1334,6 @@ static int
completeio_send(isc_socket_t *sock, isc_socketevent_t *dev,
struct msghdr *messagehdr, int cc, int send_errno)
{
char addrbuf[ISC_SOCKADDR_FORMATSIZE];
char strbuf[ISC_STRERRORSIZE];
if (send_errno != 0) {