]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Rename shutdown() to test_shutdown() in timer_test.c
authorOndřej Surý <ondrej@isc.org>
Mon, 4 Apr 2022 23:49:04 +0000 (01:49 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 5 Apr 2022 00:17:47 +0000 (02:17 +0200)
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().

lib/isc/tests/timer_test.c

index b0322f37d1013bfb731e17d7d3501ce8c13e7ba0..a807b0dba404d28eed355bdbe4ccd472e5f7b0e9 100644 (file)
@@ -82,7 +82,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);
@@ -123,7 +123,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);