From 5c149e0363b715c27ed5413a69a3a46b5cc7825b Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 8 May 2016 11:04:20 +0200 Subject: Simplified ndpi_exit_detection_module() --- src/include/ndpi_api.h | 3 +-- src/lib/ndpi_main.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 1bdd207a1..09c3aab8c 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -149,10 +149,9 @@ extern "C" { * Destroys the detection module * * @par ndpi_struct = the struct to clearing for the detection module - * @par ndpi_free = function pointer to a nDPI memory free function * */ - void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_struct, void (*ndpi_free) (void *ptr)); + void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_struct); /** diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 7276f3ae0..221c073fd 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -1792,8 +1792,7 @@ static void free_ptree_data(void *data) { ; } /* ****************************************************** */ -void ndpi_exit_detection_module(struct ndpi_detection_module_struct - *ndpi_struct, void (*ndpi_free) (void *ptr)) { +void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_struct) { if(ndpi_struct != NULL) { int i; -- cgit v1.2.3