summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 23:01:13 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:28 +0200
commit0aa45b0d3490a343cc471d838ea5b5d6df925592 (patch)
tree5deaedbc5536725dba1d6c08af2e65aa6fcc87ce
parent60de38ceaa9528577441adcae94aa74b2ee3b03f (diff)
downloadtinyproxy-0aa45b0d3490a343cc471d838ea5b5d6df925592.tar.gz
tinyproxy-0aa45b0d3490a343cc471d838ea5b5d6df925592.zip
child_pool_create(): add to explicit cats to reduce compiler warnings.
Michael
-rw-r--r--src/child.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/child.c b/src/child.c
index 1ca97dc..b540f3c 100644
--- a/src/child.c
+++ b/src/child.c
@@ -323,7 +323,7 @@ child_pool_create (void)
return -1;
}
- child_ptr = calloc_shared_memory (child_config.maxclients,
+ child_ptr = (struct child_s *)calloc_shared_memory (child_config.maxclients,
sizeof (struct child_s));
if (!child_ptr)
{
@@ -331,7 +331,7 @@ child_pool_create (void)
return -1;
}
- servers_waiting = malloc_shared_memory (sizeof (unsigned int));
+ servers_waiting = (unsigned int *)malloc_shared_memory (sizeof (unsigned int));
if (servers_waiting == MAP_FAILED)
{
log_message (LOG_ERR, "Could not allocate memory for child counting.");