Commit 2da53322 authored by Mark Andrews's avatar Mark Andrews
Browse files

silence compiler warnings

parent e7c28697
......@@ -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;
......
......@@ -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);
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment