diff options
author | Luca <deri@ntop.org> | 2015-05-20 16:48:36 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-05-20 16:48:36 +0200 |
commit | e4923a589c04584a2faa7d9ce35e9875f41b1153 (patch) | |
tree | efa5435d52c4043cbd9305eb4667e51f0af002cb /src/lib | |
parent | 8f3b8ff4dfb5b7674b6d87c78c1bdb275f178d4d (diff) |
Fixed warning
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/protocols/quic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index cbc95519d..3180ef28b 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -49,7 +49,7 @@ static void ndpi_int_quic_add_connection(struct ndpi_detection_module_struct ndpi_int_add_connection(ndpi_struct, flow, NDPI_PROTOCOL_QUIC, NDPI_REAL_PROTOCOL); } -int connect_id(const unsigned char pflags) +static int connect_id(const unsigned char pflags) { u_int cid_len; @@ -68,12 +68,12 @@ int connect_id(const unsigned char pflags) return cid_len + 1; } -int sequence(const unsigned char *payload) +static int sequence(const unsigned char *payload) { unsigned char conv[6] = {0}; u_int seq_value = -1; - u_int seq_lens; - u_int cid_offs; + int seq_lens; + int cid_offs; int i; // Search SEQ bytes length. @@ -103,7 +103,7 @@ int sequence(const unsigned char *payload) void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) { struct ndpi_packet_struct *packet = &flow->packet; - u_int ver_offs; + int ver_offs; if(packet->udp != NULL) { u_int16_t sport = ntohs(packet->udp->source), dport = ntohs(packet->udp->dest); |