2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Change isc_timer_reset() usage to never use expires argument

There were two places where expires argument (absolute isc_time_t value)
was being used.  Both places has been converted to use relative interval
argument in preparation of simplification and refactoring of isc_timer
API.
This commit is contained in:
Ondřej Surý
2022-03-11 22:34:45 +01:00
committed by Evan Hunt
parent c259cecc90
commit 27850a5ad2
3 changed files with 47 additions and 24 deletions

View File

@@ -92,7 +92,7 @@ struct isc_timermgr {
isc_heap_t *heap;
};
static inline isc_result_t
static isc_result_t
schedule(isc_timer_t *timer, isc_time_t *now, bool signal_ok) {
isc_timermgr_t *manager;
isc_time_t due;
@@ -170,7 +170,7 @@ schedule(isc_timer_t *timer, isc_time_t *now, bool signal_ok) {
return (ISC_R_SUCCESS);
}
static inline void
static void
deschedule(isc_timer_t *timer) {
isc_timermgr_t *manager;