mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:09:59 -04:00
Fix build with DEBUG defined (-DDEBUG)
The problem was introduced by commit 98b55eb4.
This commit is contained in:
parent
9a5aa8cf3a
commit
a236151608
1 changed files with 6 additions and 1 deletions
|
|
@ -566,6 +566,9 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right,
|
|||
off_t file_position;
|
||||
unsigned char *node_data = NULL;
|
||||
size_t datasize;
|
||||
#ifdef DEBUG
|
||||
dns_name_t nodename;
|
||||
#endif /* ifdef DEBUG */
|
||||
|
||||
INSIST(node != NULL);
|
||||
|
||||
|
|
@ -618,8 +621,10 @@ serialize_node(FILE *file, dns_rbtnode_t *node, uintptr_t left, uintptr_t right,
|
|||
CHECK(isc_stdio_write(node_data, 1, datasize, file, NULL));
|
||||
|
||||
#ifdef DEBUG
|
||||
dns_name_init(&nodename, NULL);
|
||||
NODENAME(node, &nodename);
|
||||
fprintf(stderr, "serialize ");
|
||||
dns_name_print(name, stderr);
|
||||
dns_name_print(&nodename, stderr);
|
||||
fprintf(stderr, "\n");
|
||||
hexdump("node header", (unsigned char *)&temp_node,
|
||||
sizeof(dns_rbtnode_t));
|
||||
|
|
|
|||
Loading…
Reference in a new issue