inline похоже ненужен =)

This commit is contained in:
Kolan Sh 2011-04-30 01:02:52 +04:00
parent d6f1dbb321
commit 065f348402
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ void pool_destroy(struct block_pool *bp)
bp->pool = bp->free_pool = bp->busy_pool = NULL; bp->pool = bp->free_pool = bp->busy_pool = NULL;
} }
inline void *pool_alloc(struct block_pool *bp) void *pool_alloc(struct block_pool *bp)
{ {
if (!bp->free_pool) if (!bp->free_pool)
return NULL; return NULL;
@ -78,7 +78,7 @@ inline void *pool_alloc(struct block_pool *bp)
return &bp->busy_pool->obj; return &bp->busy_pool->obj;
} }
inline void pool_free(struct block_pool *bp, void *p) void pool_free(struct block_pool *bp, void *p)
{ {
if (!p) if (!p)
return; return;