summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-30 10:07:30 +0200
committerVolker Lendecke <vl@samba.org>2011-09-30 10:21:42 +0200
commit26225754ec257181e2c50e08c1703c0b65110ef7 (patch)
tree79639e3adddfbbe622a5ee20fd9c3ce06c0084f5 /source3
parent27e2a4ab4ae22359b9d289784ef4c903f7e793e8 (diff)
downloadsamba-26225754ec257181e2c50e08c1703c0b65110ef7.tar.gz
samba-26225754ec257181e2c50e08c1703c0b65110ef7.tar.bz2
samba-26225754ec257181e2c50e08c1703c0b65110ef7.zip
s3: Fix a C++ warning
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/server_prefork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/server_prefork.c b/source3/lib/server_prefork.c
index 89600aaa2a..425188fec7 100644
--- a/source3/lib/server_prefork.c
+++ b/source3/lib/server_prefork.c
@@ -92,7 +92,8 @@ bool prefork_create_pool(TALLOC_CTX *mem_ctx,
pfp->pool_size = max_children;
data_size = sizeof(struct pf_worker_data) * max_children;
- pfp->pool = anonymous_shared_allocate(data_size);
+ pfp->pool = (struct pf_worker_data *)anonymous_shared_allocate(
+ data_size);
if (pfp->pool == NULL) {
DEBUG(1, ("Failed to mmap memory for prefork pool!\n"));
talloc_free(pfp);