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

- Make isc_mutex_destroy return void

- Make isc_mutexblock_init/destroy return void
- Minor cleanups
This commit is contained in:
Witold Kręcicki
2018-11-19 10:31:09 +00:00
parent d940e95206
commit 929ea7c2c4
58 changed files with 219 additions and 243 deletions

View File

@@ -309,7 +309,7 @@ isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
isc_task_detach(&httpdmgr->task);
isc_socket_detach(&httpdmgr->sock);
isc_mem_detach(&httpdmgr->mctx);
(void)isc_mutex_destroy(&httpdmgr->lock);
isc_mutex_destroy(&httpdmgr->lock);
isc_mem_put(mctx, httpdmgr, sizeof(isc_httpdmgr_t));
return (result);
}
@@ -357,7 +357,7 @@ httpdmgr_destroy(isc_httpdmgr_t *httpdmgr) {
}
UNLOCK(&httpdmgr->lock);
(void)isc_mutex_destroy(&httpdmgr->lock);
isc_mutex_destroy(&httpdmgr->lock);
if (httpdmgr->ondestroy != NULL)
(httpdmgr->ondestroy)(httpdmgr->cb_arg);