diff options
Diffstat (limited to 'src/lib/ndpi_geoip.c')
-rw-r--r-- | src/lib/ndpi_geoip.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ndpi_geoip.c b/src/lib/ndpi_geoip.c index 599eaf6e0..3b7d09d5d 100644 --- a/src/lib/ndpi_geoip.c +++ b/src/lib/ndpi_geoip.c @@ -60,6 +60,9 @@ int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str, return(0); #else + (void)ndpi_str; + (void)ip_city_data; + (void)ip_as_data; return(-3); #endif } @@ -73,6 +76,8 @@ void ndpi_free_geoip(struct ndpi_detection_module_struct *ndpi_str) { ndpi_free(ndpi_str->mmdb_city); ndpi_free(ndpi_str->mmdb_as); +#else + (void)ndpi_str; #endif } @@ -103,6 +108,10 @@ int ndpi_get_geoip_asn(struct ndpi_detection_module_struct *ndpi_str, char *ip, return(0); } +#else + (void)ndpi_str; + (void)ip; + (void)asn; #endif return(-2); @@ -158,6 +167,13 @@ int ndpi_get_geoip_country_continent(struct ndpi_detection_module_struct *ndpi_s return(0); } +#else + (void)ndpi_str; + (void)ip; + (void)country_code; + (void)country_code_len; + (void)continent; + (void)continent_len; #endif return(-2); |