summaryrefslogtreecommitdiffhomepage
path: root/src/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stats.c')
-rw-r--r--src/stats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stats.c b/src/stats.c
index ea0b629..88d9d0d 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -1,4 +1,4 @@
-/* $Id: stats.c,v 1.13 2003-03-13 21:31:03 rjkaes Exp $
+/* $Id: stats.c,v 1.14 2003-07-31 23:38:28 rjkaes Exp $
*
* This module handles the statistics for tinyproxy. There are only two
* public API functions. The reason for the functions, rather than just a
@@ -45,7 +45,7 @@ static struct stat_s *stats;
void
init_stats(void)
{
- stats = malloc_shared_memory(sizeof(struct stat_s));
+ stats = (struct stat_s*)malloc_shared_memory(sizeof(struct stat_s));
if (stats == MAP_FAILED)
return;
@@ -81,7 +81,7 @@ showstats(struct conn_s *connptr)
snprintf(refused, sizeof(refused), "%lu", stats->num_refused);
if (!config.statpage || (!(statfile = fopen(config.statpage, "r")))) {
- message_buffer = safemalloc(MAXBUFFSIZE);
+ message_buffer = (char*)safemalloc(MAXBUFFSIZE);
if (!message_buffer)
return -1;