From: Martin Mares Date: Tue, 6 Mar 2018 11:58:18 +0000 (+0100) Subject: Silence a couple of signedness warnings X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d49e8f3fc0083747d85cc1aa7984e1cb0f853582;p=maildups.git Silence a couple of signedness warnings --- diff --git a/mdup.c b/mdup.c index aefe341..7f96bfa 100644 --- 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)