]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warnings
authorMark Andrews <marka@isc.org>
Fri, 18 Mar 2005 04:31:01 +0000 (04:31 +0000)
committerMark Andrews <marka@isc.org>
Fri, 18 Mar 2005 04:31:01 +0000 (04:31 +0000)
lib/dns/rdata.c
lib/dns/rdata/any_255/tsig_250.c

index 93aaf07e1aa72134203d95da133751a9b6216365..e0685f581a7b625e7eafcbb22c2cd61029c0ab7d 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: rdata.c,v 1.185 2004/10/06 05:56:29 marka Exp $ */
+/* $Id: rdata.c,v 1.186 2005/03/18 04:31:00 marka Exp $ */
 
 #include <config.h>
 #include <ctype.h>
@@ -1213,7 +1213,7 @@ name_tobuffer(dns_name_t *name, isc_buffer_t *target) {
 
 static isc_uint32_t
 uint32_fromregion(isc_region_t *region) {
-       unsigned long value;
+       isc_uint32_t value;
 
        REQUIRE(region->length >= 4);
        value = region->base[0] << 24;
index a404226eecd394c839ea11f4dad28438d0c6f67e..2c8637e7e163899292e475abb37612c01ef7c410 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: tsig_250.c,v 1.59 2004/03/05 05:10:07 marka Exp $ */
+/* $Id: tsig_250.c,v 1.60 2005/03/18 04:31:01 marka Exp $ */
 
 /* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
 
@@ -162,8 +162,10 @@ totext_any_tsig(ARGS_TOTEXT) {
         */
        sigtime = ((isc_uint64_t)sr.base[0] << 40) |
                  ((isc_uint64_t)sr.base[1] << 32) |
-                 (sr.base[2] << 24) | (sr.base[3] << 16) |
-                 (sr.base[4] << 8) | sr.base[5];
+                 ((isc_uint64_t)sr.base[2] << 24) |
+                 ((isc_uint64_t)sr.base[3] << 16) |
+                 ((isc_uint64_t)sr.base[4] << 8) |
+                 (isc_uint64_t)sr.base[5];
        isc_region_consume(&sr, 6);
        bufp = &buf[sizeof(buf) - 1];
        *bufp-- = 0;
@@ -457,8 +459,10 @@ tostruct_any_tsig(ARGS_TOSTRUCT) {
        INSIST(sr.length >= 6);
        tsig->timesigned = ((isc_uint64_t)sr.base[0] << 40) |
                           ((isc_uint64_t)sr.base[1] << 32) |
-                          (sr.base[2] << 24) | (sr.base[3] << 16) |
-                          (sr.base[4] << 8) | sr.base[5];
+                          ((isc_uint64_t)sr.base[2] << 24) |
+                          ((isc_uint64_t)sr.base[3] << 16) |
+                          ((isc_uint64_t)sr.base[4] << 8) |
+                          (isc_uint64_t)sr.base[5];
        isc_region_consume(&sr, 6);
 
        /*