aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_analyze.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-03-20 14:40:23 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-03-20 14:40:23 +0100
commit6f279690573200f1cc6d7e518dd301f163845806 (patch)
treee09fc4a6cf5969b8bf625c5b7cda3d3c9b95ffb0 /src/lib/ndpi_analyze.c
parentce971e354e62aee65ab268020a505e03619cf6be (diff)
Removed master protocol as it was only used for STUN and via also removed API function ndpi_get_protocol_id_master_protofix/ndpi-subprotocol-detection-and-refactoring
* Adjusted Python code to conform to the changes made during the refactoring process. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/ndpi_analyze.c')
-rw-r--r--src/lib/ndpi_analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_analyze.c b/src/lib/ndpi_analyze.c
index 3856e0f5f..0618063c0 100644
--- a/src/lib/ndpi_analyze.c
+++ b/src/lib/ndpi_analyze.c
@@ -710,7 +710,7 @@ int ndpi_cluster_bins(struct ndpi_bin *bins, u_int16_t num_bins,
#ifdef COSINE_SIMILARITY
best_similarity = -1;
#else
- best_similarity = 99999999999;
+ best_similarity = 99999999999.0f;
#endif
for(j=0; j<num_clusters; j++) {