From ffcb7da15b2aabff772580cc0b9f5214ca0506dd Mon Sep 17 00:00:00 2001 From: zhengchao Date: Sat, 3 Sep 2016 17:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=BE=83=E7=9F=AD=E7=9A=84=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=90=8D=EF=BC=8C=E6=94=B9=E9=95=BF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/mesa_fuzzy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entry/mesa_fuzzy.c b/src/entry/mesa_fuzzy.c index 69eab3f..fdb8595 100644 --- a/src/entry/mesa_fuzzy.c +++ b/src/entry/mesa_fuzzy.c @@ -11,7 +11,7 @@ //#define DEBUG_PRINT #define INIT_SIZE 128 #define ENTROPY_THRESHOLD 0.5 -int count = 0; + const char * sfh_b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -24,7 +24,7 @@ struct entry }; double get_rs_entropy(unsigned int * r_array, unsigned int r_index); -int cmp(const void * a, const void * b); +int loop_cmp(const void * a, const void * b); void sfh_rs_entropy(IVI_seg_t * seg, void * user_para); void sfh_tune_simulation(IVI_seg_t * seg, void * user_para); @@ -339,7 +339,7 @@ unsigned int segment_overlap(fuzzy_handle_inner_t * _handle, unsigned int size, return effective_length; } -int cmp(const void * a, const void * b) +int loop_cmp(const void * a, const void * b) { unsigned int tmp_a = *(unsigned int *)a; unsigned int tmp_b = *(unsigned int *)b; @@ -359,7 +359,7 @@ int cmp(const void * a, const void * b) double get_rs_entropy(unsigned int * r_array, unsigned int r_index) { - qsort(r_array, r_index, sizeof(unsigned int), cmp); + qsort(r_array, r_index, sizeof(unsigned int), loop_cmp); unsigned int current_r = r_array[0]; unsigned int * tmp_r = r_array; unsigned int count = 0;