From b231982286757107ae3b5277a7dc268ef5b144db Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 17 Dec 2020 15:34:17 +0100 Subject: Win fixes --- src/lib/ndpi_community_id.c | 2 +- src/lib/ndpi_utils.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ndpi_community_id.c b/src/lib/ndpi_community_id.c index cc8436928..992d79202 100644 --- a/src/lib/ndpi_community_id.c +++ b/src/lib/ndpi_community_id.c @@ -70,7 +70,7 @@ /* **************************************************** */ -static ssize_t ndpi_community_id_buf_copy(u_int8_t * const dst, const void * const src, ssize_t len) { +static u_int16_t ndpi_community_id_buf_copy(u_int8_t * const dst, const void * const src, u_int16_t len) { if(src) memcpy(dst, src, len); else diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 88f4356a8..95a115110 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -1802,3 +1802,4 @@ u_int32_t ndpi_quick_16_byte_hash(u_int8_t *in_16_bytes_long) { return((u_int32_t)a); } +/* ******************************************************************** */ -- cgit v1.2.3