#include "util.h"
+const char progname[] = "mdup";
+
static char *db_name;
static uns max_age = 86400;
static uns now;
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)