Remove superfluous CONST_CAST.

It only confuses cppcheck.
This commit is contained in:
Milan Broz
2021-03-09 11:53:52 +01:00
parent ca87b74333
commit 476cd2f764

View File

@@ -385,7 +385,7 @@ static int tcrypt_load(struct crypt_device *cd, struct crypt_params_tcrypt *para
unsigned long long tmp_pim_ull = 0;
r = tools_get_key(_("Enter VeraCrypt PIM: "),
CONST_CAST(char**)&tmp_pim_nptr,
&tmp_pim_nptr,
&tmp_pim_size, 0, 0, keyfile_stdin, ARG_UINT32(OPT_TIMEOUT_ID),
_verify_passphrase(0), 0, cd);
if (r < 0)
@@ -402,7 +402,7 @@ static int tcrypt_load(struct crypt_device *cd, struct crypt_params_tcrypt *para
log_err(_("Invalid PIM value: outside of range."));
r = -ERANGE;
}
crypt_safe_free(CONST_CAST(char*)tmp_pim_nptr);
crypt_safe_free(tmp_pim_nptr);
if (r < 0)
continue;