mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 01:24:46 -04:00
isc_mempool_create cannot fail, change the return type to void
This commit is contained in:
parent
1248f05ae8
commit
de123a67d6
2 changed files with 2 additions and 4 deletions
|
|
@ -451,7 +451,7 @@ isc_mem_renderjson(void *memobj0);
|
|||
* Memory pools
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
void
|
||||
isc_mempool_create(isc_mem_t *mctx, size_t size, isc_mempool_t **mpctxp);
|
||||
/*%<
|
||||
* Create a memory pool.
|
||||
|
|
|
|||
|
|
@ -1535,7 +1535,7 @@ isc_mem_gettag(isc_mem_t *ctx0) {
|
|||
* Memory pool stuff
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
void
|
||||
isc_mempool_create(isc_mem_t *mctx0, size_t size, isc_mempool_t **mpctxp) {
|
||||
isc__mem_t *mctx = (isc__mem_t *)mctx0;
|
||||
isc__mempool_t *mpctx;
|
||||
|
|
@ -1579,8 +1579,6 @@ isc_mempool_create(isc_mem_t *mctx0, size_t size, isc_mempool_t **mpctxp) {
|
|||
ISC_LIST_INITANDAPPEND(mctx->pools, mpctx, link);
|
||||
mctx->poolcnt++;
|
||||
MCTXUNLOCK(mctx);
|
||||
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue