aboutsummaryrefslogtreecommitdiffstats
path: root/epan/emem.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-05-11 19:40:33 +0000
committerEvan Huus <eapache@gmail.com>2013-05-11 19:40:33 +0000
commit526763c293c8a34748c992d94aa744a36463c22d (patch)
treed2ff69cbecfd44d55cc6b07cbe2ace6408afed40 /epan/emem.c
parent69fae76be1fb64a2616473d987adfdf61508d27a (diff)
Fix compilation with SHOW_EMEM_STATS defined.
svn path=/trunk/; revision=49252
Diffstat (limited to 'epan/emem.c')
-rw-r--r--epan/emem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/emem.c b/epan/emem.c
index 488f6d2cba..1882b26a76 100644
--- a/epan/emem.c
+++ b/epan/emem.c
@@ -382,7 +382,7 @@ static guint allocations[NUM_ALLOC_DIST] = { 0 };
static guint total_no_chunks = 0;
static void
-print_alloc_stats()
+print_alloc_stats(void)
{
guint num_chunks = 0;
guint num_allocs = 0;
@@ -469,7 +469,7 @@ print_alloc_stats()
int len;
while (ptr != NULL) {
- ptr = emem_canary_next(se_packet_mem.canary, ptr, &len);
+ ptr = emem_canary_next(se_packet_mem.canary, (guint8*)ptr, &len);
if (ptr == (void *) -1)
g_error("Memory corrupted");