aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2015-11-10 01:12:00 +0100
committerCampus <campus@ntop.org>2015-11-10 01:12:00 +0100
commit78eceb43a16fab912f204a1684f7f228350a5e94 (patch)
treefd389f9ed56d5b9ed88786de0d9a2737433f10e3 /example/ndpiReader.c
parent0cd8d939f13bc8646498e1790bfa51ec8d7b8ceb (diff)
deleted useless or not used functions and #ifdef
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index f850036cf..40ef7cf6b 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -994,8 +994,8 @@ static void setupDetection(u_int16_t thread_id) {
ndpi_set_protocol_detection_bitmask2(ndpi_thread_info[thread_id].ndpi_struct, &all);
// allocate memory for id and flow tracking
- size_id_struct = ndpi_detection_get_sizeof_ndpi_id_struct();
- size_flow_struct = ndpi_detection_get_sizeof_ndpi_flow_struct();
+ size_id_struct = sizeof(struct ndpi_id_struct);
+ size_flow_struct = sizeof(struct ndpi_flow_struct);
// clear memory for results
memset(ndpi_thread_info[thread_id].stats.protocol_counter, 0, sizeof(ndpi_thread_info[thread_id].stats.protocol_counter));