]> mj.ucw.cz Git - maildups.git/commitdiff
Silence a couple of signedness warnings
authorMartin Mares <mj@ucw.cz>
Tue, 6 Mar 2018 11:58:18 +0000 (12:58 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 6 Mar 2018 11:58:18 +0000 (12:58 +0100)
mdup.c

diff --git a/mdup.c b/mdup.c
index aefe3410d141b78750ab84fd98f88c66e8dd2f64..7f96bfa8c491f17fa80866e09415ec42258f6bf4 100644 (file)
--- a/mdup.c
+++ b/mdup.c
@@ -228,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)