mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
*FIXED* IRIX warnings:
"nxt.c", line 42: remark(1552): variable "byte" was set but never used "nxt.c", line 56: remark(1552): variable "byte" was set but never used
This commit is contained in:
parent
d3d03f736d
commit
421cb938fd
1 changed files with 6 additions and 6 deletions
|
|
@ -39,13 +39,12 @@
|
|||
|
||||
static void
|
||||
set_bit(unsigned char *array, unsigned int index, unsigned int bit) {
|
||||
unsigned int byte, shift, mask;
|
||||
|
||||
byte = array[index / 8];
|
||||
unsigned int shift, mask;
|
||||
|
||||
shift = 7 - (index % 8);
|
||||
mask = 1 << shift;
|
||||
|
||||
if (bit)
|
||||
if (bit != 0)
|
||||
array[index / 8] |= mask;
|
||||
else
|
||||
array[index / 8] &= (~mask & 0xFF);
|
||||
|
|
@ -54,11 +53,12 @@ set_bit(unsigned char *array, unsigned int index, unsigned int bit) {
|
|||
static unsigned int
|
||||
bit_isset(unsigned char *array, unsigned int index) {
|
||||
unsigned int byte, shift, mask;
|
||||
|
||||
|
||||
byte = array[index / 8];
|
||||
shift = 7 - (index % 8);
|
||||
mask = 1 << shift;
|
||||
return ((array[index / 8] & mask) != 0);
|
||||
|
||||
return ((byte & mask) != 0);
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
|
|
|
|||
Loading…
Reference in a new issue