remove unnessary casts

This commit is contained in:
Michael Graff
1999-06-08 21:55:07 +00:00
parent 7ab0e69f61
commit 608b132b4e

View File

@@ -668,7 +668,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
INSIST(mpctx->items != NULL);
item = mpctx->items;
for (count = 0 ; count < n ; count++) {
item = ((element *)item)->next;
item = item->next;
INSIST(item != NULL);
}
@@ -678,7 +678,7 @@ mempool_release(isc_mempool_t *mpctx, unsigned int n)
*/
LOCK(&mctx->lock);
do {
next = ((element *)item)->next;
next = item->next;
mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0);
mpctx->freecount--;
@@ -708,7 +708,7 @@ mempool_releaseall(isc_mempool_t *mpctx)
item = mpctx->items;
do {
next = ((element *)item)->next;
next = item->next;
mem_putunlocked(mctx, item, mpctx->size);
INSIST(mpctx->freecount > 0);
mpctx->freecount--;