aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2015-12-31 10:27:54 +0100
committerMichele Campus <fci1908@gmail.com>2015-12-31 10:27:54 +0100
commita2c51a586ebae66da84d658dd53df60b3ad140a0 (patch)
treeda31f02c9847e5c9f32c2f3d92466e41656ac3d3 /example
parent3aa506eb1b6ddf629b6c7c4f74060c52da6768e0 (diff)
parent1b2702df24ec06fa2cc244b350d96fdb3e8dd9e5 (diff)
Merge pull request #132 from pavel-odintsov/dev
Made ndpi memory allocator type compatible with C++ on x686 platforms
Diffstat (limited to 'example')
-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)