diff options
author | Luca Deri <deri@ntop.org> | 2016-05-08 11:04:20 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-05-08 11:04:20 +0200 |
commit | 5c149e0363b715c27ed5413a69a3a46b5cc7825b (patch) | |
tree | 877d97947c3e5c22fc4226719bc14342da84935f /src | |
parent | 22e03ee98a07cce4a58b38b97860f56541ab82d9 (diff) |
Simplified ndpi_exit_detection_module()
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_api.h | 3 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
2 files changed, 2 insertions, 4 deletions
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; |