summaryrefslogtreecommitdiff
path: root/lib/pool_alloc.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-11-19 00:23:21 +0000
committerWayne Davison <wayned@samba.org>2006-11-19 00:23:21 +0000
commit4a19c3b254b01c298fe25d72f450a760278e9386 (patch)
tree7fa0be332e7ae1c85d92b836f68f5fe60b623a97 /lib/pool_alloc.c
parent4743f0f41b2e180d22616c89331ee3b06d628628 (diff)
downloadrsync-4a19c3b254b01c298fe25d72f450a760278e9386.tar.gz
rsync-4a19c3b254b01c298fe25d72f450a760278e9386.tar.bz2
rsync-4a19c3b254b01c298fe25d72f450a760278e9386.zip
Added "const" to appropriate char pointers.
Diffstat (limited to 'lib/pool_alloc.c')
-rw-r--r--lib/pool_alloc.c5
1 files changed, 2 insertions, 3 deletions
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)