From 182108ac911e3be28846f86cb8102b119bfd660d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 17 Apr 2010 13:38:20 +0200 Subject: [PATCH] hostkey: fix compiler warning --- src/hostkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hostkey.c b/src/hostkey.c index 7a7972a..94c330a 100644 --- a/src/hostkey.c +++ b/src/hostkey.c @@ -167,7 +167,7 @@ hostkey_method_ssh_rsa_signv(LIBSSH2_SESSION * session, { libssh2_rsa_ctx *rsactx = (libssh2_rsa_ctx *) (*abstract); int ret; - unsigned int i; + int i; unsigned char hash[SHA_DIGEST_LENGTH]; libssh2_sha1_ctx ctx; @@ -346,7 +346,7 @@ hostkey_method_ssh_dss_signv(LIBSSH2_SESSION * session, libssh2_dsa_ctx *dsactx = (libssh2_dsa_ctx *) (*abstract); unsigned char hash[SHA_DIGEST_LENGTH]; libssh2_sha1_ctx ctx; - unsigned int i; + int i; *signature = LIBSSH2_ALLOC(session, 2 * SHA_DIGEST_LENGTH); if (!*signature) {