]> mj.ucw.cz Git - libucw.git/blobdiff - lib/bitsig.c
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / lib / bitsig.c
index ed510fad0d4988c2fe9679d482f89bee715a9fde..8ffe8dbc9340d5f441afb0b92ffbc2df07855e17 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Bit Array Signatures -- A Dubious Detector of Duplicates
+ *     UCW Library -- Bit Array Signatures -- A Dubious Detector of Duplicates
  *
  *     (c) 2002 Martin Mares <mj@ucw.cz>
  *
@@ -46,7 +46,6 @@
 #include "lib/md5.h"
 
 #include <string.h>
-#include <stdlib.h>
 
 struct bitsig {
   uns l, m, n, maxn, max_m_mult;
@@ -73,7 +72,7 @@ bitsig_init(uns perrlog, uns maxn)
   b->maxn = maxn;
   b->max_m_mult = (0xffffffff / m) * m;
   bzero(b->array, mbytes);
-  log(L_DEBUG, "Initialized bitsig array with l=%d, m=%u (%u KB), expecting %d items", b->l, b->m, (mbytes+1023)/1024, maxn);
+  msg(L_DEBUG, "Initialized bitsig array with l=%d, m=%u (%u KB), expecting %d items", b->l, b->m, (mbytes+1023)/1024, maxn);
   return b;
 }
 
@@ -140,7 +139,7 @@ bitsig_insert(struct bitsig *b, byte *item)
        }
     }
   if (!was && b->n++ == b->maxn+1)
-    log(L_ERROR, "bitsig: Too many items inserted, error rate will be higher than estimated!");
+    msg(L_ERROR, "bitsig: Too many items inserted, error rate will be higher than estimated!");
   return was;
 }