From 4a19c3b254b01c298fe25d72f450a760278e9386 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 19 Nov 2006 00:23:21 +0000 Subject: Added "const" to appropriate char pointers. --- lib/pool_alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/pool_alloc.c') diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index 1ec381d1..b0164e78 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -44,8 +44,7 @@ struct align_test { #define PTR_ADD(b,o) ( (void*) ((char*)(b) + (o)) ) alloc_pool_t -pool_create(size_t size, size_t quantum, - void (*bomb)(char *), int flags) +pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags) { struct alloc_pool *pool; @@ -92,7 +91,7 @@ pool_destroy(alloc_pool_t p) } void * -pool_alloc(alloc_pool_t p, size_t len, char *bomb) +pool_alloc(alloc_pool_t p, size_t len, const char *bomb) { struct alloc_pool *pool = (struct alloc_pool *) p; if (!pool) -- cgit v1.2.3