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

index b7bd8a74dea9a33494e553b95906a288ba6ae539..1b610cda80b9383f8a8ff45038deab7084b874e5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009, 2012-2016  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009, 2012-2016, 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
@@ -93,7 +93,7 @@ make_querymessage(dns_message_t *message, const char *namestr,
        qname0 = dns_fixedname_name(&fixedqname);
        result = dns_name_fromtext(qname0, &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);
                return (result);
        }
 
@@ -183,13 +183,13 @@ 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 = dns_client_create(&client, 0);
        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);
        }
 
index dfb7ff5418e71c859beb8606b5a24c8eb6457648..a36a88a08e57da0553f60cb768a091cf1cb9c3e5 100644 (file)
 ./lib/samples/rootkey.sh                       SH      2013
 ./lib/samples/sample-async.c                   C       2009,2013,2014,2015,2018
 ./lib/samples/sample-gai.c                     C       2009,2012,2013,2014,2015
-./lib/samples/sample-request.c                 C       2009,2012,2013,2014,2015,2016
+./lib/samples/sample-request.c                 C       2009,2012,2013,2014,2015,2016,2018
 ./lib/samples/sample-update.c                  C       2009,2010,2012,2013,2014,2015,2016,2017,2018
 ./lib/samples/win32/async.dsp.in               X       2014,2016
 ./lib/samples/win32/async.dsw                  X       2014