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
b07086de
Commit
b07086de
authored
May 03, 2013
by
Mark Andrews
Browse files
add missing parameter sha1
parent
0dc44869
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/dns/tests/rbt_test.c
View file @
b07086de
...
...
@@ -101,13 +101,15 @@ delete_data(void *data, void *arg) {
}
static
isc_result_t
write_data
(
FILE
*
file
,
unsigned
char
*
datap
,
isc_uint32_t
serial
)
{
write_data
(
FILE
*
file
,
unsigned
char
*
datap
,
isc_uint32_t
serial
,
isc_sha1_t
*
sha1
)
{
size_t
ret
=
0
;
data_holder_t
*
data
=
(
data_holder_t
*
)
datap
;
data_holder_t
temp
;
uintptr_t
where
=
ftell
(
file
);
UNUSED
(
serial
);
UNUSED
(
sha1
);
REQUIRE
(
data
!=
NULL
);
REQUIRE
((
data
->
len
==
0
&&
data
->
data
==
NULL
)
||
...
...
@@ -131,13 +133,15 @@ write_data(FILE *file, unsigned char *datap, isc_uint32_t serial) {
}
static
void
fix_data
(
dns_rbtnode_t
*
p
)
{
fix_data
(
dns_rbtnode_t
*
p
,
isc_sha1_t
*
sha1
)
{
data_holder_t
*
data
=
p
->
data
;
REQUIRE
(
data
!=
NULL
);
REQUIRE
((
data
->
len
==
0
&&
data
->
data
==
NULL
)
||
(
data
->
len
!=
0
&&
data
->
data
!=
NULL
));
UNUSED
(
sha1
);
printf
(
"fixing data: len %d, data %p
\n
"
,
data
->
len
,
data
->
data
);
data
->
data
=
(
data
->
len
==
0
)
...
...
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