1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s3: Fix a C++ warning

This commit is contained in:
Volker Lendecke 2011-09-30 10:07:35 +02:00
parent 26225754ec
commit 0834ecc6f3

View File

@ -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",