Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mpl/dhcp/dist/common isc timer API changed with the...
details: https://anonhg.NetBSD.org/src/rev/472e5d6b5d46
branches: trunk
changeset: 376651:472e5d6b5d46
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 27 09:10:25 2023 +0000
description:
isc timer API changed with the recent bind import - use isc_timer_destroy()
instead of isc_timer_detach()
diffstat:
external/mpl/dhcp/dist/common/dispatch.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 78cdb4e3b354 -r 472e5d6b5d46 external/mpl/dhcp/dist/common/dispatch.c
--- a/external/mpl/dhcp/dist/common/dispatch.c Tue Jun 27 07:31:36 2023 +0000
+++ b/external/mpl/dhcp/dist/common/dispatch.c Tue Jun 27 09:10:25 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dispatch.c,v 1.3 2022/04/03 01:10:58 christos Exp $ */
+/* $NetBSD: dispatch.c,v 1.4 2023/06/27 09:10:25 martin Exp $ */
/* dispatch.c
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: dispatch.c,v 1.3 2022/04/03 01:10:58 christos Exp $");
+__RCSID("$NetBSD: dispatch.c,v 1.4 2023/06/27 09:10:25 martin Exp $");
#include "dhcpd.h"
@@ -183,7 +183,7 @@ isclib_timer_callback(isc_task_t *taskp
(*q->unref) (&q->what, MDL);
}
q->next = free_timeouts;
- isc_timer_detach(&q->isc_timeout);
+ isc_timer_destroy(&q->isc_timeout);
free_timeouts = q;
} else {
/*
@@ -409,7 +409,7 @@ void cancel_timeout (where, what)
#if defined (TRACING)
if (!trace_playback()) {
#endif
- isc_timer_detach(&q->isc_timeout);
+ isc_timer_destroy(&q->isc_timeout);
#if defined (TRACING)
}
#endif
@@ -427,7 +427,7 @@ void cancel_all_timeouts ()
struct timeout *t, *n;
for (t = timeouts; t; t = n) {
n = t->next;
- isc_timer_detach(&t->isc_timeout);
+ isc_timer_destroy(&t->isc_timeout);
if (t->unref && t->what)
(*t->unref) (&t->what, MDL);
t->next = free_timeouts;
Home |
Main Index |
Thread Index |
Old Index