]> 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>
Fri, 16 Feb 2018 05:07:49 +0000 (16:07 +1100)
bin/tests/shutdown_test.c
util/copyrights

index 72fdc4fce735af4d5f4c7786ed3ce70a4cc4247c..aeea422f546f88202181b1dd5d2cf9847418f512 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2007, 2011, 2013, 2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2007, 2011, 2013, 2017, 2018  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 1998-2001  Internet Software Consortium.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
@@ -148,7 +148,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);
@@ -184,7 +184,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 a5efbae85903d39bd0dcad5b1ee0fdda3fead1fe..075a0a1dacee34ec6a5c146968422e03fd5dd79e 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,2017,2018
 ./bin/tests/serial_test.c                      C       1999,2000,2001,2003,2004,2007,2015
-./bin/tests/shutdown_test.c                    C       1998,1999,2000,2001,2004,2007,2011,2013,2017
+./bin/tests/shutdown_test.c                    C       1998,1999,2000,2001,2004,2007,2011,2013,2017,2018
 ./bin/tests/sig0_test.c                                C       2000,2001,2004,2005,2007,2008,2009,2012,2015
 ./bin/tests/sock_test.c                                C       1998,1999,2000,2001,2004,2007,2008,2012,2013,2014,2015,2017
 ./bin/tests/sockaddr/Makefile.in               MAKE    1999,2000,2001,2002,2004,2007,2009,2012,2014