diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-04-21 19:23:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 19:23:57 +0200 |
commit | 019b51bb178d83405d5c01ce604f240c0914f9df (patch) | |
tree | 0ec2ba19365c66b9dba49cf35397762e5cbc030d /example/reader_util.c | |
parent | e2be7daed6b298e214df91f54061cdac91cd8781 (diff) | |
parent | b1a6c6b8957b62ec8ada423abfdcfa5471c00147 (diff) |
Merge pull request #879 from IvanNardi/warnings
Fix some compilation warnings
Diffstat (limited to 'example/reader_util.c')
-rw-r--r-- | example/reader_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/reader_util.c b/example/reader_util.c index a5c003102..dbce3636e 100644 --- a/example/reader_util.c +++ b/example/reader_util.c @@ -1216,7 +1216,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow, u_int8_t *payload; u_int8_t src_to_dst_direction = 1; u_int8_t begin_or_end_tcp = 0; - struct ndpi_proto nproto = { NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_UNKNOWN }; + struct ndpi_proto nproto = NDPI_PROTOCOL_NULL; if(iph) flow = get_ndpi_flow_info(workflow, IPVERSION, vlan_id, @@ -1447,7 +1447,7 @@ struct ndpi_proto ndpi_workflow_process_packet(struct ndpi_workflow * workflow, /** --- IPv6 header --- **/ struct ndpi_ipv6hdr *iph6; - struct ndpi_proto nproto = { NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_UNKNOWN }; + struct ndpi_proto nproto = NDPI_PROTOCOL_NULL; ndpi_packet_tunnel tunnel_type = ndpi_no_tunnel; /* lengths and offsets */ |