Commit 597bdfef authored by Michael Graff's avatar Michael Graff
Browse files

Make this compile again after the dns_rdataset_totext()

parent 3ff8d687
......@@ -82,7 +82,8 @@ print_rdataset(dns_name_t *name, dns_rdataset_t *rdataset) {
isc_region_t r;
isc_buffer_init(&text, t, sizeof t, ISC_BUFFERTYPE_TEXT);
result = dns_rdataset_totext(rdataset, name, ISC_FALSE, &text);
result = dns_rdataset_totext(rdataset, name, ISC_FALSE, &text,
isc_buffer_used(&text, &r);
if (result == DNS_R_SUCCESS)
printf("%.*s", (int)r.length, (char *)r.base);
......@@ -45,7 +45,8 @@ print_dataset(dns_rdatacallbacks_t *callbacks, dns_name_t *owner,
callbacks = callbacks; /*unused*/
isc_buffer_init(&target, buf, 64*1024, ISC_BUFFERTYPE_TEXT);
result = dns_rdataset_totext(dataset, owner, ISC_FALSE, &target);
result = dns_rdataset_totext(dataset, owner, ISC_FALSE, &target,
if (result == DNS_R_SUCCESS)
fprintf(stdout, "%.*s\n", (int)target.used,
Supports Markdown
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