mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
dns_message_create() API change
This commit is contained in:
@@ -131,7 +131,7 @@ main(int argc, char *argv[]) {
|
||||
isc_buffer_add(&source, bp - b);
|
||||
|
||||
message = NULL;
|
||||
result = dns_message_create(mctx, &message, DNS_MESSAGE_INTENTPARSE);
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
|
||||
CHECKRESULT(result, "dns_message_create failed");
|
||||
|
||||
result = dns_message_parse(message, &source);
|
||||
@@ -185,7 +185,7 @@ main(int argc, char *argv[]) {
|
||||
printf("Message rendered.\n");
|
||||
isc_mem_stats(mctx, stdout);
|
||||
|
||||
result = dns_message_create(mctx, &message, DNS_MESSAGE_INTENTPARSE);
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENTPARSE, &message);
|
||||
CHECKRESULT(result, "dns_message_create failed");
|
||||
|
||||
result = dns_message_parse(message, &source);
|
||||
|
Reference in New Issue
Block a user