Fix some (ancient) compiler warnings.

This commit is contained in:
Milan Broz
2020-02-21 10:30:39 +01:00
parent 0cf5e309a0
commit 16c7aab99b
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ static int hash_keys(struct crypt_device *cd,
const char *hash_name;
char tweak, *key_ptr;
unsigned int i;
int r;
int r = 0;
hash_name = hash_override ?: get_hash(key_len_output);
tweak = get_tweak(keys_count);

View File

@@ -55,7 +55,7 @@ static int crypt_wipe_special(struct crypt_device *cd, int fd, size_t bsize,
size_t alignment, char *buffer,
uint64_t offset, size_t size)
{
int r;
int r = 0;
unsigned int i;
ssize_t written;