From 5ad056e99b190c8d5a0d721ec57fa280182013f5 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 21 Feb 2021 21:45:29 +0100 Subject: Removed unused NDPI_RISKY_COUNTRY --- src/include/ndpi_typedefs.h | 2 +- src/lib/ndpi_utils.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 795d78b02..678d55f52 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -91,7 +91,7 @@ typedef enum { NDPI_HTTP_SUSPICIOUS_CONTENT, NDPI_RISKY_ASN, NDPI_RISKY_DOMAIN, - NDPI_RISKY_COUNTRY, + /* Leave this as last member */ NDPI_MAX_RISK /* must be <= 31 due to (**) */ diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 749e2e91e..e3ae4b780 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1759,9 +1759,6 @@ const char* ndpi_risk2str(ndpi_risk_enum risk) { case NDPI_RISKY_DOMAIN: return("Risky domain name"); - case NDPI_RISKY_COUNTRY: - return("Risky country name"); - default: snprintf(buf, sizeof(buf), "%d", (int)risk); return(buf); -- cgit v1.2.3