}
static void
-dns__nta_shutdown_cb(dns__nta_t *nta) {
+dns__nta_shutdown_cb(void *arg) {
+ dns__nta_t *nta = arg;
+
REQUIRE(VALID_NTA(nta));
if (isc_log_wouldlog(dns_lctx, ISC_LOG_DEBUG(3))) {
REQUIRE(VALID_NTA(nta));
dns__nta_ref(nta);
- isc_async_run(nta->loop, (isc_job_cb)dns__nta_shutdown_cb, nta);
+ isc_async_run(nta->loop, dns__nta_shutdown_cb, nta);
nta->shuttingdown = true;
}
static void
fctx_try(fetchctx_t *fctx, bool retrying, bool badcache);
static void
-fctx_shutdown(fetchctx_t *fctx);
+fctx_shutdown(void *arg);
static void
fctx_minimize_qname(fetchctx_t *fctx);
static void
}
static void
-fctx_shutdown(fetchctx_t *fctx) {
+fctx_shutdown(void *arg) {
+ fetchctx_t *fctx = arg;
+
REQUIRE(VALID_FCTX(fctx));
fctx_done_unref(fctx, ISC_R_SHUTTINGDOWN);
INSIST(fctx != NULL);
fetchctx_ref(fctx);
- isc_async_run(fctx->loop, (isc_job_cb)fctx_shutdown,
- fctx);
+ isc_async_run(fctx->loop, fctx_shutdown, fctx);
}
isc_hashmap_iter_destroy(&it);
RWUNLOCK(&res->fctxs_lock, isc_rwlocktype_write);
if (new_fctx) {
fetchctx_ref(fctx);
- isc_async_run(fctx->loop, (isc_job_cb)fctx_start, fctx);
+ isc_async_run(fctx->loop, fctx_start, fctx);
}
unlock:
}
isc_result_t
-noop_accept_cb(isc_nmhandle_t *handle ISC_ATTR_UNUSED, unsigned int eresult,
+noop_accept_cb(isc_nmhandle_t *handle ISC_ATTR_UNUSED, isc_result_t eresult,
void *cbarg ISC_ATTR_UNUSED) {
F();
void *cbarg);
isc_result_t
-noop_accept_cb(isc_nmhandle_t *handle ISC_ATTR_UNUSED, unsigned int result,
+noop_accept_cb(isc_nmhandle_t *handle ISC_ATTR_UNUSED, isc_result_t result,
void *cbarg ISC_ATTR_UNUSED);
void