Made ndpi memory allocator type compatible with C++ on x686 platforms. Switch from unsigned long to size_t as allocation functions parameter.

This commit is contained in:
Pavel Odintsov
2015-12-28 14:08:57 +03:00
parent 6d37ee2970
commit 1b2702df24
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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)