From: Ondřej Surý Date: Mon, 4 Apr 2022 23:49:04 +0000 (+0200) Subject: Rename shutdown() to test_shutdown() in timer_test.c X-Git-Tag: v9.19.0~18^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7868d8145bf07eae275889332752dfc462212a4f;p=thirdparty%2Fbind9.git Rename shutdown() to test_shutdown() in timer_test.c The shutdown() is part of standard library (POSIX-1), don't use such name in the timer_test.c, but rather rename it to test_shutdown(). --- diff --git a/lib/isc/tests/timer_test.c b/lib/isc/tests/timer_test.c index 75c30851fbc..02024225079 100644 --- a/lib/isc/tests/timer_test.c +++ b/lib/isc/tests/timer_test.c @@ -81,7 +81,7 @@ _teardown(void **state) { } static void -shutdown(isc_task_t *task, isc_event_t *event) { +test_shutdown(isc_task_t *task, isc_event_t *event) { isc_result_t result; UNUSED(task); @@ -121,7 +121,7 @@ setup_test(isc_timertype_t timertype, isc_interval_t *interval, result = isc_task_create(taskmgr, 0, &task); assert_int_equal(result, ISC_R_SUCCESS); - result = isc_task_onshutdown(task, shutdown, NULL); + result = isc_task_onshutdown(task, test_shutdown, NULL); assert_int_equal(result, ISC_R_SUCCESS); isc_mutex_lock(&lasttime_mx);