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

index 74f6e4fa29c73276ac83d74b84dcf798ccbf96ff..2028c18a241d406b2bc70c3177d80996ed476580 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009, 2013-2016  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009, 2013-2016, 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
@@ -161,7 +161,7 @@ process_answer(isc_task_t *task, isc_event_t *event) {
        printf("answer[%2d]\n", trans->id);
 
        if (rev->result != ISC_R_SUCCESS)
-               printf("  failed: %d(%s)\n", rev->result,
+               printf("  failed: %u(%s)\n", rev->result,
                       dns_result_totext(rev->result));
 
        for (name = ISC_LIST_HEAD(rev->answerlist); name != NULL;
@@ -323,14 +323,14 @@ 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);
        }
 
        result = ctxs_init(&mctx, &query_actx, &taskmgr, &socketmgr,
                           &timermgr);
        if (result != ISC_R_SUCCESS) {
-               fprintf(stderr, "ctx create failed: %d\n", result);
+               fprintf(stderr, "ctx create failed: %u\n", result);
                exit(1);
        }
 
@@ -339,7 +339,7 @@ main(int argc, char *argv[]) {
        result = dns_client_createx(mctx, query_actx, taskmgr, socketmgr,
                                    timermgr, 0, &client);
        if (result != ISC_R_SUCCESS) {
-               fprintf(stderr, "dns_client_createx failed: %d\n", result);
+               fprintf(stderr, "dns_client_createx failed: %u\n", result);
                exit(1);
        }
 
@@ -357,7 +357,7 @@ main(int argc, char *argv[]) {
        result = dns_client_setservers(client, dns_rdataclass_in, NULL,
                                       &servers);
        if (result != ISC_R_SUCCESS) {
-               fprintf(stderr, "set server failed: %d\n", result);
+               fprintf(stderr, "set server failed: %u\n", result);
                exit(1);
        }
 
@@ -365,7 +365,7 @@ main(int argc, char *argv[]) {
        query_task = NULL;
        result = isc_task_create(taskmgr, 0, &query_task);
        if (result != ISC_R_SUCCESS) {
-               fprintf(stderr, "failed to create task: %d\n", result);
+               fprintf(stderr, "failed to create task: %u\n", result);
                exit(1);
        }
 
index 4b7a4e3225ac3727b2d9b62d292038cc6613d777..6d597aa6a6f34dd20da2441e4e1a7f42698d3511 100644 (file)
 ./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,2018
 ./lib/samples/rootkey.sh                       SH      2013,2016
-./lib/samples/sample-async.c                   C       2009,2013,2014,2015,2016
+./lib/samples/sample-async.c                   C       2009,2013,2014,2015,2016,2018
 ./lib/samples/sample-gai.c                     C       2009,2012,2013,2014,2015,2016
 ./lib/samples/sample-request.c                 C       2009,2012,2013,2014,2015,2016
 ./lib/samples/sample-update.c                  C       2009,2010,2012,2013,2014,2015,2016,2017,2018