diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2021-12-04 20:22:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 20:22:05 +0100 |
commit | 947896ad7dce9602dea1e70948363e568718cbb0 (patch) | |
tree | ac98e5e7e892172d29df004588d5093e7c02de15 /src | |
parent | 7cba34a1e3aef9cb057db2a5f5fab22473aabc48 (diff) |
Fix configure script (after fb85dac9) (#1381)
Fix/disable some LGTM warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ndpi_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 974df4a95..807b178e2 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3010,7 +3010,7 @@ int ndpi_add_host_risk_mask(struct ndpi_detection_module_struct *ndpi_str, int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule, u_int8_t do_add) { char *at, *proto, *elem; ndpi_proto_defaults_t *def; - u_int16_t subprotocol_id, i; + u_int subprotocol_id, i; at = strrchr(rule, '@'); if(at == NULL) { @@ -3061,7 +3061,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_str, char *rule, } } - for(i = 0, def = NULL; i < (int) ndpi_str->ndpi_num_supported_protocols; i++) { + for(i = 0, def = NULL; i < ndpi_str->ndpi_num_supported_protocols; i++) { if(ndpi_str->proto_defaults[i].protoName && strcasecmp(ndpi_str->proto_defaults[i].protoName, proto) == 0) { def = &ndpi_str->proto_defaults[i]; |