projects
/
platform
/
upstream
/
cryptsetup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gcc signed/unsigned warning for key length.
[platform/upstream/cryptsetup.git]
/
lib
/
loopaes
/
loopaes.c
diff --git
a/lib/loopaes/loopaes.c
b/lib/loopaes/loopaes.c
index
d9d7a6b
..
1cb209c
100644
(file)
--- 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;
{
const char *hash_name;
char tweak, *key_ptr;
- unsigned i;
+ unsigned i
nt i
;
int r;
hash_name = hash_override ?: get_hash(key_len_output);
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];
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 i
nt i
, key_index, key_len, offset;
log_dbg("Parsing loop-AES keyfile of size %d.", buffer_len);
log_dbg("Parsing loop-AES keyfile of size %d.", buffer_len);