From 1b2702df24ec06fa2cc244b350d96fdb3e8dd9e5 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Mon, 28 Dec 2015 14:08:57 +0300 Subject: Made ndpi memory allocator type compatible with C++ on x686 platforms. Switch from unsigned long to size_t as allocation functions parameter. --- example/ndpiReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index e2cc162fb..b75672192 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -407,7 +407,7 @@ static void debug_printf(u_int32_t protocol, void *id_struct, /* ***************************************************** */ -static void *malloc_wrapper(unsigned long size) { +static void *malloc_wrapper(size_t size) { current_ndpi_memory += size; if(current_ndpi_memory > max_ndpi_memory) -- cgit v1.2.3