X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Floopaes%2Floopaes.c;h=1cb209cc99e5ba1b345a39a9f6717fc95dd2625a;hb=2a2444b961db398f8a1f147434a2adc3f260fd17;hp=d9d7a6b2c6ac9f1d873765488c9194478c954b0e;hpb=2526ec92bd9e83615be0f1861874ef9e0705869c;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/lib/loopaes/loopaes.c b/lib/loopaes/loopaes.c index d9d7a6b..1cb209c 100644 --- a/lib/loopaes/loopaes.c +++ b/lib/loopaes/loopaes.c @@ -80,7 +80,7 @@ static int hash_keys(struct crypt_device *cd, { const char *hash_name; char tweak, *key_ptr; - unsigned i; + unsigned int i; int r; hash_name = hash_override ?: get_hash(key_len_output); @@ -134,8 +134,8 @@ int LOOPAES_parse_keyfile(struct crypt_device *cd, size_t buffer_len) { const char *keys[LOOPAES_KEYS_MAX]; - int key_lengths[LOOPAES_KEYS_MAX]; - unsigned i, key_index, key_len, offset; + unsigned int key_lengths[LOOPAES_KEYS_MAX]; + unsigned int i, key_index, key_len, offset; log_dbg("Parsing loop-AES keyfile of size %d.", buffer_len);