From 1cdb19eaae64042a762779dbbe8977c6c8fa5bee Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 15 Feb 2018 13:26:09 +1100 Subject: [PATCH] use %u instead of %d --- lib/isc/task.c | 4 ++-- util/copyrights | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/isc/task.c b/lib/isc/task.c index 3b73e595ed..2fe636972f 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2017 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 1998-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 @@ -1448,7 +1448,7 @@ isc__taskmgr_create(isc_mem_t *mctx, unsigned int workers, &manager->threads[manager->workers]) == ISC_R_SUCCESS) { char name[16]; /* thread name limit on Linux */ - snprintf(name, sizeof(name), "isc-worker%04d", i); + snprintf(name, sizeof(name), "isc-worker%04u", i); isc_thread_setname(manager->threads[manager->workers], name); manager->workers++; diff --git a/util/copyrights b/util/copyrights index 37ede234c9..d889bb4cf3 100644 --- a/util/copyrights +++ b/util/copyrights @@ -4029,7 +4029,7 @@ ./lib/isc/string.c C 1999,2000,2001,2003,2004,2005,2006,2007,2011,2012,2014,2015,2016 ./lib/isc/strtoul.c C 2003,2004,2005,2007,2014,2016 ./lib/isc/symtab.c C 1996,1997,1998,1999,2000,2001,2004,2005,2007,2011,2012,2013,2016 -./lib/isc/task.c C 1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017 +./lib/isc/task.c C 1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018 ./lib/isc/taskpool.c C 1999,2000,2001,2004,2005,2007,2011,2012,2013,2016 ./lib/isc/tests/Atffile X 2011,2017 ./lib/isc/tests/Kyuafile X 2017