aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorPavel Odintsov <odintsov@fastvps.ru>2015-12-28 14:08:57 +0300
committerPavel Odintsov <odintsov@fastvps.ru>2015-12-28 14:08:57 +0300
commit1b2702df24ec06fa2cc244b350d96fdb3e8dd9e5 (patch)
tree5bcce4bef54c9a6ff077f46cc8056669f22c25ab /example/ndpiReader.c
parent6d37ee2970c5866260a3fd66920a6bf6e740b702 (diff)
Made ndpi memory allocator type compatible with C++ on x686 platforms. Switch from unsigned long to size_t as allocation functions parameter.
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
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)