Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
d3d03f73
Commit
d3d03f73
authored
May 13, 2000
by
David Lawrence
Browse files
Silence IRIX warning:
"name.c", line 201: remark(1552): variable "byte" was set but never used
parent
0911d40d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/name.c
View file @
d3d03f73
...
...
@@ -198,13 +198,12 @@ get_bit(unsigned char *array, unsigned int index) {
static
void
set_bit
(
unsigned
char
*
array
,
unsigned
int
index
,
unsigned
int
bit
)
{
unsigned
int
byte
,
shift
,
mask
;
unsigned
int
shift
,
mask
;
byte
=
array
[
index
/
8
];
shift
=
7
-
(
index
%
8
);
mask
=
1
<<
shift
;
if
(
bit
)
if
(
bit
!=
0
)
array
[
index
/
8
]
|=
mask
;
else
array
[
index
/
8
]
&=
(
~
mask
&
0xFF
);
...
...
@@ -723,7 +722,9 @@ dns_name_equal(dns_name_t *name1, dns_name_t *name2) {
return
(
ISC_FALSE
);
if
(
count
==
0
)
count
=
256
;
/* number of bytes */
/*
* Number of bytes.
*/
count
=
(
count
+
7
)
/
8
;
while
(
count
>
0
)
{
count
--
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment