Commit b07086de authored by Mark Andrews's avatar Mark Andrews
Browse files

add missing parameter sha1

parent 0dc44869
......@@ -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)
......
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