aboutsummaryrefslogtreecommitdiff
path: root/example/ndpi_util.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-10-30 01:14:49 +0200
committerCampus <campus@ntop.org>2016-10-30 01:14:49 +0200
commit097ba22a595f7d5e8f4f58dcd4c3e7e77d71e355 (patch)
treef04243dab3908a8a8004327ef8d0740fb7f49366 /example/ndpi_util.c
parentb8fb5fb403a48820787ea87bca63acbfd658d31c (diff)
minor fix to keep same coherence of type used
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r--example/ndpi_util.c2
1 files changed, 1 insertions, 1 deletions
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) {