summaryrefslogtreecommitdiff
path: root/external/mpl/bind/dist/bin/tests/optional/shutdown_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/mpl/bind/dist/bin/tests/optional/shutdown_test.c')
-rw-r--r--external/mpl/bind/dist/bin/tests/optional/shutdown_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/external/mpl/bind/dist/bin/tests/optional/shutdown_test.c b/external/mpl/bind/dist/bin/tests/optional/shutdown_test.c
index 10108209f53..52fbc161246 100644
--- a/external/mpl/bind/dist/bin/tests/optional/shutdown_test.c
+++ b/external/mpl/bind/dist/bin/tests/optional/shutdown_test.c
@@ -1,4 +1,4 @@
-/* $NetBSD: shutdown_test.c,v 1.7 2022/09/23 12:15:23 christos Exp $ */
+/* $NetBSD: shutdown_test.c,v 1.8 2023/06/26 22:02:59 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -75,7 +75,7 @@ shutdown_action(isc_task_t *task, isc_event_t *event) {
printf("task %s (%p) shutdown\n", info->name, task);
if (strcmp(info->name, "0") == 0) {
- isc_timer_detach(&info->timer);
+ isc_timer_destroy(&info->timer);
nevent = isc_event_allocate(info->mctx, info, T2_SHUTDOWNOK,
t2_shutdown, &tasks[1],
sizeof(*event));
@@ -106,7 +106,7 @@ tick(isc_task_t *task, isc_event_t *event) {
if (info->ticks == 10) {
isc_app_shutdown();
} else if (info->ticks >= 15 && info->exiting) {
- isc_timer_detach(&info->timer);
+ isc_timer_destroy(&info->timer);
isc_task_detach(&info->task);
nevent = isc_event_allocate(
info->mctx, info, T2_SHUTDOWNDONE, t1_shutdown,
@@ -116,7 +116,7 @@ tick(isc_task_t *task, isc_event_t *event) {
isc_task_detach(&info->peer);
}
} else if (strcmp(info->name, "foo") == 0) {
- isc_timer_detach(&info->timer);
+ isc_timer_destroy(&info->timer);
nevent = isc_event_allocate(info->mctx, info, FOO_EVENT,
foo_event, task, sizeof(*event));
RUNTIME_CHECK(nevent != NULL);