]> mj.ucw.cz Git - maildups.git/blobdiff - mdup.c
Teach mparse to handle maildirs
[maildups.git] / mdup.c
diff --git a/mdup.c b/mdup.c
index 877d375fe0672e10c23a4294f6caed3afc017f7b..7f96bfa8c491f17fa80866e09415ec42258f6bf4 100644 (file)
--- a/mdup.c
+++ b/mdup.c
@@ -18,6 +18,8 @@
 
 #include "util.h"
 
+const char progname[] = "mdup";
+
 static char *db_name;
 static uns max_age = 86400;
 static uns now;
@@ -226,8 +228,8 @@ parse_header_line(char *line, uns cnt, struct item *item)
 
   struct sha1_ctx ctx;
   sha1_init(&ctx);
-  sha1_update(&ctx, lhs, l-lhs);
-  sha1_update(&ctx, rhs, r-rhs);
+  sha1_update(&ctx, (unsigned char *) lhs, l-lhs);
+  sha1_update(&ctx, (unsigned char *) rhs, r-rhs);
   sha1_final(&ctx, item->digest);
   item->timestamp = 1;
   if (verbose >= 1)