Simplified ndpi_exit_detection_module()

This commit is contained in:
Luca Deri
2016-05-08 11:04:20 +02:00
parent 22e03ee98a
commit 5c149e0363
3 changed files with 4 additions and 12 deletions
+1 -2
View File
@@ -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);
/**
+1 -2
View File
@@ -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;