]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compile warnings, explict conversio
authorMark Andrews <marka@isc.org>
Tue, 18 May 2010 06:28:29 +0000 (06:28 +0000)
committerMark Andrews <marka@isc.org>
Tue, 18 May 2010 06:28:29 +0000 (06:28 +0000)
lib/dns/ncache.c

index 2bed18c76fbd9a229b06d116e622703d3c88edba..73684ad17d46b3417a6ec4e73d983b8317885c09 100644 (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 = {