From: Mark Andrews Date: Mon, 9 Aug 2010 00:18:50 +0000 (+0000) Subject: silence compiler warnings (windows) X-Git-Tag: v9.5.3b1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6776061a4cb0e5a75cd91ebb1b4edadc1e5bf30e;p=thirdparty%2Fbind9.git silence compiler warnings (windows) --- diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c index 2a17e5a10b0..e407dcf30f0 100644 --- a/lib/dns/ncache.c +++ b/lib/dns/ncache.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ncache.c,v 1.41.128.5 2010/06/03 23:46:48 tbox Exp $ */ +/* $Id: ncache.c,v 1.41.128.6 2010/08/09 00:18:50 marka Exp $ */ /*! \file */ @@ -180,7 +180,7 @@ dns_ncache_add(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node, isc_buffer_putuint16(&buffer, rdataset->type); isc_buffer_putuint8(&buffer, - rdataset->trust); + (unsigned char)rdataset->trust); /* * Copy the rdataset into the buffer. */ @@ -257,7 +257,7 @@ dns_ncache_add(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node, trust = dns_trust_authauthority; } else trust = dns_trust_additional; - isc_buffer_putuint8(&buffer, trust); /* trust */ + isc_buffer_putuint8(&buffer, (unsigned char)trust); /* trust */ isc_buffer_putuint16(&buffer, 0); /* count */ /* @@ -503,7 +503,7 @@ static void rdataset_settrust(dns_rdataset_t *rdataset, dns_trust_t trust) { unsigned char *raw = rdataset->private3; - raw[-1] = trust; + raw[-1] = (unsigned char)trust; } static dns_rdatasetmethods_t rdataset_methods = {