]> mj.ucw.cz Git - libucw.git/blobdiff - lib/bitsig.c
Adjust comments in UCW Library modules.
[libucw.git] / lib / bitsig.c
index 2e8d5c1f486f4c05a39cefd9602dce5c76131cbe..05ad894d488b49e4852ff83d09b33450c4c2409f 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>
  *
@@ -36,6 +36,9 @@
  *     We leave L and an upper bound for N as parameters set during
  *     creation of the structure. Currently, the structure is limited
  *     to 4 Gb = 512 MB.
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -43,6 +46,7 @@
 #include "lib/md5.h"
 
 #include <string.h>
+#include <stdlib.h>
 
 struct bitsig {
   uns l, m, n, maxn, max_m_mult;
@@ -73,6 +77,12 @@ bitsig_init(uns perrlog, uns maxn)
   return b;
 }
 
+void
+bitsig_free(struct bitsig *b)
+{
+  xfree(b);
+}
+
 static void
 bitsig_hash_init(struct bitsig *b, byte *item)
 {