From 097ba22a595f7d5e8f4f58dcd4c3e7e77d71e355 Mon Sep 17 00:00:00 2001 From: Campus Date: Sun, 30 Oct 2016 01:14:49 +0200 Subject: minor fix to keep same coherence of type used --- example/ndpi_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/ndpi_util.c') diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 405cac366..672eee561 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -748,7 +748,7 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow, } if(iph->version == 4) { - ip_len = ((u_short)iph->ihl * 4); + ip_len = ((u_int16_t)iph->ihl * 4); iph6 = NULL; if(iph->protocol == 41) { -- cgit v1.2.3