aboutsummaryrefslogtreecommitdiffstats
path: root/epan/except.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-17 04:23:47 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-17 04:23:47 +0000
commite4e9b912750e5778f84d18f40966f2003a38082d (patch)
tree565587e559109e2b4251584d292d1017220f47e3 /epan/except.c
parent5b8847740187829bde9ac4f2de35b1d6bf865e71 (diff)
Add proper type cast.
Thanks to Martin for reporting this. svn path=/trunk/; revision=29451
Diffstat (limited to 'epan/except.c')
-rw-r--r--epan/except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/except.c b/epan/except.c
index f740ebc012..8529a8a24a 100644
--- a/epan/except.c
+++ b/epan/except.c
@@ -139,7 +139,7 @@ void except_deinit(void)
static int init_counter;
static void unhandled_catcher(except_t *);
static void (*uh_catcher_ptr)(except_t *) = unhandled_catcher;
-static void *(*allocator)(size_t) = g_malloc;
+static void *(*allocator)(size_t) = (void *(*)(size_t)) g_malloc;
static void (*deallocator)(void *) = g_free;
static struct except_stacknode *stack_top;