Fix missing u_char, u_short and u_int typedefs for some platforms e.g.: (#2009)
In file included from ../include/ndpi_main.h:34,
from ../include/ndpi_api.h:28,
from protocols/activision.c:26:
../include/ndpi_typedefs.h:294:3: error: unknown type name 'u_char'
294 | u_char h_dest[6]; /* destination eth addr */
| ^~~~~~
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
+2
-1
@@ -8489,7 +8489,8 @@ char *ndpi_strnstr(const char *s, const char *find, size_t slen) {
|
||||
/* ****************************************************** */
|
||||
|
||||
/*
|
||||
* Same as ndpi_strnstr but case-insensitive
|
||||
* Same as ndpi_strnstr but case-insensitive.
|
||||
* Please note that this function is *NOT* equivalent to strncasecmp().
|
||||
*/
|
||||
const char * ndpi_strncasestr(const char *str1, const char *str2, size_t len) {
|
||||
size_t str1_len = strnlen(str1, len);
|
||||
|
||||
Reference in New Issue
Block a user