/*
- * Copyright (C) 2009, 2012-2017 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009, 2012-2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
name = dns_fixedname_name(&fname);
result = dns_name_fromtext(name, &b, dns_rootname, 0, NULL);
if (result != ISC_R_SUCCESS) {
- fprintf(stderr, "failed to convert qname: %d\n",
+ fprintf(stderr, "failed to convert qname: %u\n",
result);
exit(1);
}
result = dns_client_setservers(client, dns_rdataclass_in, name,
&servers);
if (result != ISC_R_SUCCESS) {
- fprintf(stderr, "set server failed: %d\n", result);
+ fprintf(stderr, "set server failed: %u\n", result);
exit(1);
}
}
isc_lib_register();
result = dns_lib_init();
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);
}
result = dns_client_createx2(mctx, actx, taskmgr, socketmgr, timermgr,
clientopt, &client, addr4, addr6);
if (result != ISC_R_SUCCESS) {
- fprintf(stderr, "dns_client_create failed: %d, %s\n", result,
+ fprintf(stderr, "dns_client_create failed: %u, %s\n", result,
isc_result_totext(result));
exit(1);
}
result = irs_resconf_load(mctx, "/etc/resolv.conf", &resconf);
if (result != ISC_R_SUCCESS && result != ISC_R_FILENOTFOUND) {
- fprintf(stderr, "irs_resconf_load failed: %d\n",
+ fprintf(stderr, "irs_resconf_load failed: %u\n",
result);
exit(1);
}
NULL, nameservers);
if (result != ISC_R_SUCCESS) {
irs_resconf_destroy(&resconf);
- fprintf(stderr, "dns_client_setservers failed: %d\n",
+ fprintf(stderr, "dns_client_setservers failed: %u\n",
result);
exit(1);
}
qname = dns_fixedname_name(&qname0);
result = dns_name_fromtext(qname, &b, dns_rootname, 0, NULL);
if (result != ISC_R_SUCCESS)
- fprintf(stderr, "failed to convert qname: %d\n", result);
+ fprintf(stderr, "failed to convert qname: %u\n", result);
/* Perform resolution */
resopt = DNS_CLIENTRESOPT_ALLOWRUN;
./lib/samples/Makefile-postinstall.in MAKE 2009,2012,2013,2014,2016,2017
./lib/samples/Makefile.in MAKE 2009,2012,2013,2014,2015,2016,2017
./lib/samples/nsprobe.c C 2009,2010,2011,2012,2013,2014,2015,2016,2018
-./lib/samples/resolve.c C 2009,2012,2013,2014,2015,2016,2017
+./lib/samples/resolve.c C 2009,2012,2013,2014,2015,2016,2017,2018
./lib/samples/rootkey.sh SH 2013,2016
./lib/samples/sample-async.c C 2009,2013,2014,2015,2016
./lib/samples/sample-gai.c C 2009,2012,2013,2014,2015,2016