Win changes
This commit is contained in:
+2
-1
@@ -6557,7 +6557,8 @@ void ndpi_dump_risks_score() {
|
||||
for(i = 1; i < NDPI_MAX_RISK; i++) {
|
||||
ndpi_risk_enum r = (ndpi_risk_enum)i;
|
||||
ndpi_risk risk = 2 << (r-1);
|
||||
ndpi_risk_severity s = ndpi_risk2severity(r)->severity;
|
||||
ndpi_risk_info* info = ndpi_risk2severity(r);
|
||||
ndpi_risk_severity s =info->severity;
|
||||
u_int16_t client_score, server_score;
|
||||
u_int16_t score = ndpi_risk2score(risk, &client_score, &server_score);
|
||||
|
||||
|
||||
-4
@@ -184,10 +184,6 @@ typedef struct ac_node
|
||||
AC_ALPHABET_t *a_ptr;
|
||||
} AC_NODE_t;
|
||||
|
||||
#ifndef __SIZEOF_POINTER__
|
||||
#error SIZEOF_POINTER not defined!
|
||||
#endif
|
||||
|
||||
struct edge {
|
||||
unsigned short degree; /* Number of outgoing edges */
|
||||
unsigned short max; /* Max capacity of allocated memory for outgoing */
|
||||
|
||||
+5
-1
@@ -24,7 +24,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#ifndef WIN32
|
||||
#include <unistd.h>
|
||||
#else
|
||||
#define __SIZEOF_LONG__ 4
|
||||
#endif
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#else
|
||||
@@ -756,7 +760,7 @@ static inline size_t bsf(uint32_t bits)
|
||||
#else
|
||||
size_t i=0;
|
||||
if(!bits) return i;
|
||||
if((bits & 0xffff)bits == 0) { i+=16; bits >>=16; }
|
||||
if((bits & 0xffff) == 0) { i+=16; bits >>=16; }
|
||||
if((bits & 0xff) == 0) i+=8;
|
||||
return i;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user