diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-30 10:07:35 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-09-30 10:21:43 +0200 |
commit | 0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6 (patch) | |
tree | e807c8fbed8a5d1e0d4573a42e62f4fe4a127a88 /source3/lib | |
parent | 26225754ec257181e2c50e08c1703c0b65110ef7 (diff) | |
download | samba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.tar.gz samba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.tar.bz2 samba-0834ecc6f3f68d70c4bbf6b5ad745f4992a7f0f6.zip |
s3: Fix a C++ warning
Diffstat (limited to 'source3/lib')
-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 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", |