From 9400aea16a8fc0624da8bd84bf35c6788e02a56b Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 3 Apr 2014 12:46:22 +1100 Subject: [PATCH] * cleanup --- src/Makefile | 2 +- src/main.c | 2 +- src/main.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index d51acf4..9c52f35 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-Wall -Wextra -O0 -g -ggdb -pedantic +CFLAGS=-Wall -Wextra -O0 -g -ggdb -std=c99 -pedantic all: util diff --git a/src/main.c b/src/main.c index 35dfdcf..20a488f 100644 --- a/src/main.c +++ b/src/main.c @@ -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); diff --git a/src/main.h b/src/main.h index 72093b3..5530324 100644 --- a/src/main.h +++ b/src/main.h @@ -13,7 +13,6 @@ #include #include #include -#include #define FREE(ptr) \ free((ptr)); (ptr) = NULL;