summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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",