diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-04-21 19:23:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 19:23:57 +0200 |
commit | 019b51bb178d83405d5c01ce604f240c0914f9df (patch) | |
tree | 0ec2ba19365c66b9dba49cf35397762e5cbc030d /example/ndpiReader.c | |
parent | e2be7daed6b298e214df91f54061cdac91cd8781 (diff) | |
parent | b1a6c6b8957b62ec8ada423abfdcfa5471c00147 (diff) |
Merge pull request #879 from IvanNardi/warnings
Fix some compilation warnings
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index d64918b85..f15ee0e66 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -218,6 +218,7 @@ FILE *trace = NULL; */ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle); +#if 0 static void reduceBDbits(uint32_t *bd, unsigned int len) { int mask = 0; int shift = 0; @@ -238,6 +239,7 @@ static void reduceBDbits(uint32_t *bd, unsigned int len) { for(i = 0; i < len; i++) bd[i] = bd[i] >> shift; } +#endif /** * @brief Get flow byte distribution mean and variance @@ -1530,12 +1532,14 @@ static int acceptable(u_int32_t num_pkts){ /* *********************************************** */ +#if 0 static int receivers_sort(void *_a, void *_b) { struct receiver *a = (struct receiver *)_a; struct receiver *b = (struct receiver *)_b; return(b->num_pkts - a->num_pkts); } +#endif /* *********************************************** */ |