]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove event which is only used for sizeof
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 04:00:34 +0000 (15:00 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 03:08:26 +0000 (14:08 +1100)
bin/tests/tasks/t_tasks.c
util/copyrights

index 79831db5b17e71286228c9d227b2e0743dcdc157..f94db4ed69adc051f1b30db33accd7f4154b65d4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1998-2001, 2004, 2005, 2007, 2009, 2011, 2013-2016  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1998-2001, 2004, 2005, 2007, 2009, 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
@@ -489,7 +489,6 @@ t_tasks2(void) {
        uintptr_t               ntasks;
        int                     result;
        char                    *p;
-       isc_event_t             *event;
        unsigned int            workers;
        isc_result_t            isc_result;
 
@@ -546,7 +545,7 @@ t_tasks2(void) {
        }
 
        T2_event = isc_event_allocate(T2_mctx, (void *)1, 1, t2_callback,
-                                       (void *)ntasks, sizeof(*event));
+                                     (void *)ntasks, sizeof(*T2_event));
        if (T2_event == NULL) {
                t_info("isc_event_allocate failed\n");
                return(T_UNRESOLVED);
index 5c453ff3ab8b338bb9df56982524693474d2c77e..7ae171d1eaefdd22650d11c7dd728b2ae4529742 100644 (file)
 ./bin/tests/t_api.pl                           PERL    1999,2000,2001,2004,2007,2012,2016
 ./bin/tests/task_test.c                                C       1998,1999,2000,2001,2004,2007,2013,2014,2015,2016,2018
 ./bin/tests/tasks/Makefile.in                  MAKE    1998,1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017
-./bin/tests/tasks/t_tasks.c                    C       1998,1999,2000,2001,2004,2005,2007,2009,2011,2013,2014,2015,2016
+./bin/tests/tasks/t_tasks.c                    C       1998,1999,2000,2001,2004,2005,2007,2009,2011,2013,2014,2015,2016,2018
 ./bin/tests/tasks/win32/t_tasks.vcxproj.filters.in     X       2013,2015
 ./bin/tests/tasks/win32/t_tasks.vcxproj.in     X       2013,2015,2016,2017
 ./bin/tests/tasks/win32/t_tasks.vcxproj.user   X       2013,2015