mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
use %u instead of %d
This commit is contained in:
@@ -236,7 +236,7 @@ main(int argc, char *argv[]) {
|
|||||||
isc_lib_register();
|
isc_lib_register();
|
||||||
result = dns_lib_init();
|
result = dns_lib_init();
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
fprintf(stderr, "dns_lib_init failed: %d\n", result);
|
fprintf(stderr, "dns_lib_init failed: %u\n", result);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
result = isc_mem_create(0, 0, &umctx);
|
result = isc_mem_create(0, 0, &umctx);
|
||||||
@@ -247,7 +247,7 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
result = dns_client_create(&client, 0);
|
result = dns_client_create(&client, 0);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
fprintf(stderr, "dns_client_create failed: %d\n", result);
|
fprintf(stderr, "dns_client_create failed: %u\n", result);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@ main(int argc, char *argv[]) {
|
|||||||
zname = dns_fixedname_name(&zname0);
|
zname = dns_fixedname_name(&zname0);
|
||||||
result = dns_name_fromtext(zname, &b, dns_rootname, 0, NULL);
|
result = dns_name_fromtext(zname, &b, dns_rootname, 0, NULL);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
fprintf(stderr, "failed to convert zone name: %d\n",
|
fprintf(stderr, "failed to convert zone name: %u\n",
|
||||||
result);
|
result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user