@ -1,4 +1,4 @@
CFLAGS=-Wall -Wextra -O0 -g -ggdb -pedantic
CFLAGS=-Wall -Wextra -O0 -g -ggdb -std=c99 -pedantic
all: util
@ -48,7 +48,7 @@ int db_search(db_t *db, rec_t *sample, float tresh, match_t **matches)
diff = (float) bitmap_compare(t, sample->data + OFF_BITMAP);
diff /= BITMAP_BITS;
if (diff > tresh) continue;
printf("%ld -- %f\n", blk.start + i, diff);
printf("%lli -- %.2f\n", blk.start + i, diff * 100);
found++;
}
FREE(blk.data);
@ -13,7 +13,6 @@
#include <limits.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <db.h>
#define FREE(ptr) \
free((ptr)); (ptr) = NULL;