]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use %u instead of %d
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 03:21:42 +0000 (14:21 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 03:08:26 +0000 (14:08 +1100)
lib/samples/resolve.c
util/copyrights

index 13c431a71a07579ca5e5d0793fec85111e370346..f0b959dd3f3435ac71bf11f21a0f615cb4d0dcf2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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
@@ -214,7 +214,7 @@ addserver(dns_client_t *client, const char *addrstr, const char *port,
                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);
                }
@@ -223,7 +223,7 @@ addserver(dns_client_t *client, const char *addrstr, const char *port,
        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);
        }
 }
@@ -363,7 +363,7 @@ main(int argc, char *argv[]) {
        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);
        }
 
@@ -393,7 +393,7 @@ main(int argc, char *argv[]) {
        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);
        }
@@ -405,7 +405,7 @@ main(int argc, char *argv[]) {
 
                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);
                }
@@ -414,7 +414,7 @@ main(int argc, char *argv[]) {
                                               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);
                }
@@ -446,7 +446,7 @@ main(int argc, char *argv[]) {
        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;
index b6ac56d566c53c3c842ea0d1feba9ea5a7cc71a7..4b7a4e3225ac3727b2d9b62d292038cc6613d777 100644 (file)
 ./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