Fix some compiler warnings.

This commit is contained in:
Milan Broz
2019-02-07 17:14:47 +01:00
parent 319fd19b5e
commit 91b74b6896
5 changed files with 6 additions and 8 deletions

View File

@@ -324,7 +324,7 @@ int crypt_pbkdf(const char *kdf, const char *hash,
return -EINVAL;
if (!PKCS5_PBKDF2_HMAC(password, (int)password_length,
(unsigned char *)salt, (int)salt_length,
(const unsigned char *)salt, (int)salt_length,
(int)iterations, hash_id, (int)key_length, (unsigned char *)key))
return -EINVAL;
return 0;