git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2622575
)
s3: Fix a C++ warning
author
Volker Lendecke
<vl@samba.org>
Fri, 30 Sep 2011 08:07:35 +0000
(10:07 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 30 Sep 2011 08:21:43 +0000
(10:21 +0200)
source3/lib/server_prefork.c
patch
|
blob
|
history
diff --git
a/source3/lib/server_prefork.c
b/source3/lib/server_prefork.c
index 425188fec7c032c3ac59b18d97fd25eabe39b22d..f9df91417c92167ce2c6e354644e2dd6e4991dfe 100644
(file)
--- 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",