From df91d61dc7cec3f401aee551df551aa4c90676c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 5 Apr 2022 01:49:04 +0200 Subject: [PATCH] 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(). (cherry picked from commit 7868d8145bf07eae275889332752dfc462212a4f) --- lib/isc/tests/timer_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/tests/timer_test.c b/lib/isc/tests/timer_test.c index 8ff64c6da3..808c9b8254 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); @@ -122,7 +122,7 @@ setup_test(isc_timertype_t timertype, isc_time_t *expires, 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);