summaryrefslogtreecommitdiff
path: root/lib
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
parent4743f0f41b2e180d22616c89331ee3b06d628628 (diff)
downloadrsync-4a19c3b254b01c298fe25d72f450a760278e9386.tar.gz
rsync-4a19c3b254b01c298fe25d72f450a760278e9386.tar.bz2
rsync-4a19c3b254b01c298fe25d72f450a760278e9386.zip
Added "const" to appropriate char pointers.
Diffstat (limited to 'lib')
-rw-r--r--lib/pool_alloc.c5
-rw-r--r--lib/pool_alloc.h4
2 files changed, 4 insertions, 5 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)
diff --git a/lib/pool_alloc.h b/lib/pool_alloc.h
index a4ab761c..3d095634 100644
--- a/lib/pool_alloc.h
+++ b/lib/pool_alloc.h
@@ -7,9 +7,9 @@
typedef void *alloc_pool_t;
-alloc_pool_t pool_create(size_t size, size_t quantum, void (*bomb)(char *), int flags);
+alloc_pool_t pool_create(size_t size, size_t quantum, void (*bomb)(const char *), int flags);
void pool_destroy(alloc_pool_t pool);
-void *pool_alloc(alloc_pool_t pool, size_t size, char *bomb);
+void *pool_alloc(alloc_pool_t pool, size_t size, const char *bomb);
void pool_free(alloc_pool_t pool, size_t size, void *addr);
#define pool_talloc(pool, type, count, bomb) \