From: Jilles Tjoelker Date: Sat, 8 Jan 2011 16:40:12 +0000 (+0100) Subject: Fix compiler warnings. X-Git-Tag: shadowircd-6.3.0-RC1~5 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/86044bd2d6117c6ae6c227149c909437cd5c9ad4?hp=f38f82ac362a5ed8eef271b585e0dcf373bee10c Fix compiler warnings. --- diff --git a/libratbox/src/crypt.c b/libratbox/src/crypt.c index 54dca3b..6123d12 100644 --- a/libratbox/src/crypt.c +++ b/libratbox/src/crypt.c @@ -1586,7 +1586,7 @@ static char *rb_sha256_crypt_r(const char *key, const char *salt, char *buffer, rb_sha256_init_ctx(&alt_ctx); /* For every character in the password add the entire password. */ - for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) + for (cnt = 0; cnt < (size_t)(16 + alt_result[0]); ++cnt) rb_sha256_process_bytes(salt, salt_len, &alt_ctx); /* Finish the digest. */ @@ -2162,7 +2162,7 @@ static char *rb_sha512_crypt_r(const char *key, const char *salt, char *buffer, rb_sha512_init_ctx(&alt_ctx); /* For every character in the password add the entire password. */ - for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) + for (cnt = 0; cnt < (size_t)(16 + alt_result[0]); ++cnt) rb_sha512_process_bytes(salt, salt_len, &alt_ctx); /* Finish the digest. */