aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2024-01-09 21:49:30 +0100
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-18 10:21:24 +0100
commit88720331ae6c68e99816ae3eee5f618fdddac02f (patch)
tree4646cf5c6120e3bb29181644df6465e54750aa3c /example/reader_util.c
parent1289951b322c66295cdb03b3c26a6cdd24cc160d (diff)
config: remove `enum ndpi_prefs`
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index c16e1d93a..e5399ab16 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -79,7 +79,6 @@ extern u_int8_t max_num_udp_dissected_pkts /* 24 */, max_num_tcp_dissected_pkts
static u_int32_t flow_id = 0;
u_int8_t enable_doh_dot_detection = 0;
-extern ndpi_init_prefs init_prefs;
extern int malloc_size_stats;
extern struct ndpi_bin malloc_bins;
@@ -410,7 +409,7 @@ int parse_proto_name_list(char *str, NDPI_PROTOCOL_BITMASK *bitmask, int inverte
else
op = 0; /* Default action: remove from the bitmask */
/* Use a temporary module with all protocols enabled */
- module = ndpi_init_detection_module(0);
+ module = ndpi_init_detection_module();
if(!module)
return 1;
NDPI_BITMASK_SET_ALL(all);
@@ -466,7 +465,7 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
#endif
/* TODO: just needed here to init ndpi ndpi_malloc wrapper */
- module = ndpi_init_detection_module(init_prefs);
+ module = ndpi_init_detection_module();
if(module == NULL) {
LOG(NDPI_LOG_ERROR, "global structure initialization failed\n");