2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

silence compile warnings, explict conversio

This commit is contained in:
Mark Andrews
2010-05-18 06:28:29 +00:00
parent 5928877cd0
commit 32f985bcf4

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ncache.c,v 1.47 2010/05/14 23:50:39 tbox Exp $ */
/* $Id: ncache.c,v 1.48 2010/05/18 06:28:29 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 = {