Browse Source

* cleanup

master
Alex 'AdUser' Z 10 years ago
parent
commit
9400aea16a
  1. 2
      src/Makefile
  2. 2
      src/main.c
  3. 1
      src/main.h

2
src/Makefile

@ -1,4 +1,4 @@
CFLAGS=-Wall -Wextra -O0 -g -ggdb -pedantic
CFLAGS=-Wall -Wextra -O0 -g -ggdb -std=c99 -pedantic
all: util

2
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);

1
src/main.h

@ -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;

Loading…
Cancel
Save