From 452829748692455c0b66e002402a43fbaa076ff4 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 15 Feb 2018 14:23:54 +1100 Subject: [PATCH] use %u instead of %d --- lib/samples/sample-request.c | 8 ++++---- util/copyrights | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/samples/sample-request.c b/lib/samples/sample-request.c index 11cfd0ec9b..b46616c08c 100644 --- a/lib/samples/sample-request.c +++ b/lib/samples/sample-request.c @@ -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") * * 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 @@ -85,7 +85,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); } @@ -175,13 +175,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); } diff --git a/util/copyrights b/util/copyrights index e45a165b42..361b0952ab 100644 --- a/util/copyrights +++ b/util/copyrights @@ -4305,7 +4305,7 @@ ./lib/samples/rootkey.sh SH 2013,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-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.vcxproj.filters.in X 2014,2015 ./lib/samples/win32/async.vcxproj.in X 2014,2015,2016,2017