From: Mark Andrews Date: Tue, 18 May 2010 06:29:32 +0000 (+0000) Subject: silence compile warnings, explict conversion X-Git-Tag: v9.7.1b1^3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf80fd484193a4a5e4a6c1a5a6a53b6b7148499e;p=thirdparty%2Fbind9.git silence compile warnings, explict conversion --- diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c index 12621bb9032..f87ff1b454e 100644 --- a/lib/dns/ncache.c +++ b/lib/dns/ncache.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ncache.c,v 1.43.268.4 2010/05/14 23:49:20 tbox Exp $ */ +/* $Id: ncache.c,v 1.43.268.5 2010/05/18 06:29:32 marka Exp $ */ /*! \file */ @@ -191,7 +191,7 @@ dns_ncache_addoptout(dns_message_t *message, dns_db_t *cache, isc_buffer_putuint16(&buffer, rdataset->type); isc_buffer_putuint8(&buffer, - rdataset->trust); + (unsigned char)rdataset->trust); /* * Copy the rdataset into the buffer. */ @@ -514,7 +514,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 = {