]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warnings (windows) v9.5.3b1
authorMark Andrews <marka@isc.org>
Mon, 9 Aug 2010 00:18:50 +0000 (00:18 +0000)
committerMark Andrews <marka@isc.org>
Mon, 9 Aug 2010 00:18:50 +0000 (00:18 +0000)
lib/dns/ncache.c

index 2a17e5a10b08146d8701536a7a6191a6cbb4f4df..e407dcf30f0b5b7856a21adee5feed7f630d20d7 100644 (file)
@@ -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 = {