diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-30 10:07:30 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-09-30 10:21:42 +0200 |
commit | 26225754ec257181e2c50e08c1703c0b65110ef7 (patch) | |
tree | 79639e3adddfbbe622a5ee20fd9c3ce06c0084f5 /source3 | |
parent | 27e2a4ab4ae22359b9d289784ef4c903f7e793e8 (diff) | |
download | samba-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.c | 3 |
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); |