diff options
author | Wayne Davison <wayned@samba.org> | 2006-11-19 00:23:21 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-11-19 00:23:21 +0000 |
commit | 4a19c3b254b01c298fe25d72f450a760278e9386 (patch) | |
tree | 7fa0be332e7ae1c85d92b836f68f5fe60b623a97 /lib/pool_alloc.c | |
parent | 4743f0f41b2e180d22616c89331ee3b06d628628 (diff) | |
download | rsync-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.c | 5 |
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) |