Disable -Wno-unused-parameter -Wno-unused-function. (#2358)
* unused parameters and functions pollute the code and decrease readability Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ static u_int8_t sc2_match_logon_ip(struct ndpi_packet_struct* packet)
|
||||
transfer generated by the user interaction with the client, e.g. chatting or looking at someone's
|
||||
match history. The current way to detect this is plain dumb packet matching.
|
||||
*/
|
||||
static u_int8_t ndpi_check_starcraft_tcp(struct ndpi_detection_module_struct* ndpi_struct, struct ndpi_flow_struct* flow)
|
||||
static u_int8_t ndpi_check_starcraft_tcp(struct ndpi_detection_module_struct* ndpi_struct)
|
||||
{
|
||||
struct ndpi_packet_struct* packet = &ndpi_struct->packet;
|
||||
|
||||
@@ -132,7 +132,7 @@ static void ndpi_search_starcraft(struct ndpi_detection_module_struct* ndpi_stru
|
||||
}
|
||||
}
|
||||
else if (packet->tcp != NULL) {
|
||||
result = ndpi_check_starcraft_tcp(ndpi_struct, flow);
|
||||
result = ndpi_check_starcraft_tcp(ndpi_struct);
|
||||
if (result == 1) {
|
||||
NDPI_LOG_INFO(ndpi_struct, "Found Starcraft 2 [Client, TCP]\n");
|
||||
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_STARCRAFT, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI);
|
||||
|
||||
Reference in New Issue
Block a user