]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use %u instead of %d
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 07:41:08 +0000 (18:41 +1100)
committerMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 23:19:57 +0000 (10:19 +1100)
bin/tests/shutdown_test.c
util/copyrights

index 11f6aacc6e3f40ff8b0fc665a7dfad4994a753e3..923aac0230373026147fac55c96b4095026e905d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2001, 2004, 2007, 2011, 2013, 2016, 2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1998-2001, 2004, 2007, 2011, 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
@@ -139,7 +139,7 @@ new_task(isc_mem_t *mctx, const char *name) {
                INSIST(strlen(name) < sizeof(ti->name));
                strlcpy(ti->name, name, sizeof(ti->name));
        } else {
-               snprintf(ti->name, sizeof(ti->name), "%d", task_count);
+               snprintf(ti->name, sizeof(ti->name), "%u", task_count);
        }
        RUNTIME_CHECK(isc_task_create(task_manager, 0, &ti->task) ==
                      ISC_R_SUCCESS);
@@ -175,7 +175,7 @@ main(int argc, char *argv[]) {
                        workers = 8192;
        } else
                workers = 2;
-       printf("%d workers\n", workers);
+       printf("%u workers\n", workers);
 
        mctx = NULL;
        RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
index dd1bf2988f67c3076ebb62bd1809bdfa9c7d72c1..b6b1f139a7c3c348b7cb6d43230964ecff401628 100644 (file)
 ./bin/tests/resolver/win32/t_resolver.vcxproj.user     X       2013
 ./bin/tests/rwlock_test.c C 1998,1999,2000,2001,2004,2005,2007,2013,2016,2017,2018
 ./bin/tests/serial_test.c                      C       1999,2000,2001,2003,2004,2007,2015,2016
-./bin/tests/shutdown_test.c                    C       1998,1999,2000,2001,2004,2007,2011,2013,2016,2017
+./bin/tests/shutdown_test.c C 1998,1999,2000,2001,2004,2007,2011,2013,2016,2017,2018
 ./bin/tests/sig0_test.c                                C       2000,2001,2004,2005,2007,2008,2009,2012,2015,2016
 ./bin/tests/sock_test.c                                C       1998,1999,2000,2001,2004,2007,2008,2012,2013,2014,2015,2016,2017
 ./bin/tests/sockaddr/Makefile.in               MAKE    1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017