summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-30 10:07:35 +0200
committerVolker Lendecke <vl@samba.org>2011-09-30 10:21:43 +0200
commit0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6 (patch)
treee807c8fbed8a5d1e0d4573a42e62f4fe4a127a88
parent26225754ec257181e2c50e08c1703c0b65110ef7 (diff)
downloadsamba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.tar.gz
samba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.tar.bz2
samba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.zip
s3: Fix a C++ warning
-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 425188fec7..f9df91417c 100644
--- a/source3/lib/server_prefork.c
+++ b/source3/lib/server_prefork.c
@@ -159,7 +159,8 @@ int prefork_expand_pool(struct prefork_pool *pfp, int new_max)
old_size = sizeof(struct pf_worker_data) * pfp->pool_size;
new_size = sizeof(struct pf_worker_data) * new_max;
- pool = anonymous_shared_resize(&pfp->pool, new_size, false);
+ pool = (struct prefork_pool *)anonymous_shared_resize(
+ &pfp->pool, new_size, false);
if (pool == NULL) {
ret = errno;
DEBUG(3, ("Failed to mremap memory (%d: %s)!\n",