aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampus <fci1908@gmail.com>2018-08-23 11:22:21 +0200
committerCampus <fci1908@gmail.com>2018-08-23 11:22:21 +0200
commitff83bfbad073c106b41ace67cf828d6982d29635 (patch)
treeaa339c2ca95ebdfee4ec8380f0003282f199344d
parent89b3b085afa1e115d63149031a1bc897dcc52b4d (diff)
ADD: add prototype of function ht_free in hash.h - DEL: delete include file .c in ndpi_main.c
-rw-r--r--src/lib/ndpi_main.c4
-rw-r--r--src/lib/third_party/include/hash.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index b00212651..55af168e8 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -43,9 +43,9 @@
#include "ndpi_content_match.c.inc"
#include "third_party/include/ndpi_patricia.h"
-#include "third_party/src/ndpi_patricia.c"
+/* #include "third_party/src/ndpi_patricia.c" */
#include "third_party/include/hash.h"
-#include "third_party/src/hash.c"
+/* #include "third_party/src/hash.c" */
#ifdef HAVE_HYPERSCAN
#include <hs/hs.h>
diff --git a/src/lib/third_party/include/hash.h b/src/lib/third_party/include/hash.h
index 4f53e5a5e..2251706e4 100644
--- a/src/lib/third_party/include/hash.h
+++ b/src/lib/third_party/include/hash.h
@@ -25,5 +25,6 @@ extern int ht_hash( hashtable_t *hashtable, char *key );
extern entry_t *ht_newpair( char *key, u_int16_t value );
extern void ht_set( hashtable_t *hashtable, char *key, u_int16_t value );
extern u_int16_t ht_get( hashtable_t *hashtable, char *key );
+extern void ht_free( hashtable_t *hashtable );
#endif /* _HASH_H_ */