diff options
author | Campus <campus@ntop.org> | 2016-10-30 01:14:49 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2016-10-30 01:14:49 +0200 |
commit | 097ba22a595f7d5e8f4f58dcd4c3e7e77d71e355 (patch) | |
tree | f04243dab3908a8a8004327ef8d0740fb7f49366 /src | |
parent | b8fb5fb403a48820787ea87bca63acbfd658d31c (diff) |
minor fix to keep same coherence of type used
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 c2610ffe9..7959a3570 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2063,7 +2063,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod, char* rule, } if(is_tcp || is_udp) { - if(sscanf(value, "%u-%u", (unsigned int *)&range.port_low, (unsigned int *)&range.port_high) != 2) + if(sscanf(value, "%u-%u", (u_int32_t *)&range.port_low, (u_int32_t *)&range.port_high) != 2) range.port_low = range.port_high = atoi(&elem[4]); if(do_add) addDefaultPort(&range, def, 1 /* Custom user proto */, is_tcp ? &ndpi_mod->tcpRoot : &ndpi_mod->udpRoot); @@ -4319,7 +4319,7 @@ ndpi_protocol ndpi_guess_undetected_protocol(struct ndpi_detection_module_struct u_int8_t proto, u_int32_t shost /* host byte order */, u_int16_t sport, u_int32_t dhost /* host byte order */, u_int16_t dport) { - unsigned int rc; + u_int32_t rc; struct in_addr addr; ndpi_protocol ret = { NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_UNKNOWN }; u_int8_t user_defined_proto; |