Fixed compilation warnings

This commit is contained in:
Luca Deri
2015-05-18 18:29:22 +02:00
parent fc1efb56ee
commit 167c831212
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4212,7 +4212,7 @@ unsigned int ndpi_detection_process_packet(struct ndpi_detection_module_struct *
flow->packet.tick_timestamp = d;
}
#else
flow->packet.tick_timestamp = current_tick_l/1000;
flow->packet.tick_timestamp = (u_int32_t)current_tick_l/1000;
#endif
/* parse packet */
+1 -1
View File
@@ -43,7 +43,7 @@ void ndpi_search_warcraft3(struct ndpi_detection_module_struct
// struct ndpi_id_struct *src=ndpi_struct->src;
// struct ndpi_id_struct *dst=ndpi_struct->dst;
u_int32_t l; /*
u_int16_t l; /*
Leave it as u_int32_t because otherwise 'u_int16_t temp'
might overflood it and thus generate an infinite loop
*/