diff options
| -rw-r--r-- | Zend/zend_static_allocator.c | 2 | ||||
| -rw-r--r-- | Zend/zend_static_allocator.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_static_allocator.c b/Zend/zend_static_allocator.c index d5fd8cff02..4f0a30591f 100644 --- a/Zend/zend_static_allocator.c +++ b/Zend/zend_static_allocator.c @@ -42,7 +42,7 @@ inline static void block_destroy(Block *block) efree(block->bp); } -int static_allocator_init(StaticAllocator *sa) +void static_allocator_init(StaticAllocator *sa) { sa->Blocks = (Block *) emalloc(sizeof(Block)); block_init(sa->Blocks, ALLOCATOR_BLOCK_SIZE); diff --git a/Zend/zend_static_allocator.h b/Zend/zend_static_allocator.h index 902780716e..5bb988173c 100644 --- a/Zend/zend_static_allocator.h +++ b/Zend/zend_static_allocator.h @@ -38,7 +38,7 @@ typedef struct _StaticAllocator { zend_uint current_block; } StaticAllocator; -int static_allocator_init(StaticAllocator *sa); +void static_allocator_init(StaticAllocator *sa); char *static_allocator_allocate(StaticAllocator *sa, zend_uint size); void static_allocator_destroy(StaticAllocator *sa); |
