]> 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 07:35:49 +0000 (18:35 +1100)
lib/export/samples/sample.c
util/copyrights

index 15735da26da21016e8625313172227f5b7aebdfb..1c10884a54607984c8cd71bc11c97e263f5058a3 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")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -213,7 +213,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);
                }
@@ -222,7 +222,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);
        }
 }
@@ -313,14 +313,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);
        }
 
        clientopt = 0;
        result = dns_client_create(&client, clientopt);
        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);
        }
 
@@ -350,7 +350,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 = 0;
index 71136b77667acfeb4f34ec7bad1aaca6890b2c19..de5faf0a781db74888bc2a1f3103bcb8d9b2753b 100644 (file)
 ./lib/export/samples/sample-gai.c              C       2009,2012,2013,2015
 ./lib/export/samples/sample-request.c          C       2009,2012,2013,2014,2015,2016
 ./lib/export/samples/sample-update.c           C       2009,2010,2012,2013,2014,2015,2016,2017,2018
-./lib/export/samples/sample.c                  C       2009,2012,2013,2014,2015,2016,2017
+./lib/export/samples/sample.c                  C       2009,2012,2013,2014,2015,2016,2017,2018
 ./lib/irs/Atffile                              X       2016
 ./lib/irs/Kyuafile                             X       2017
 ./lib/irs/Makefile.in                          MAKE    2009,2012,2014,2015,2016,2017