mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-18 22:30:07 +01:00
Remove superfluous CONST_CAST.
It only confuses cppcheck.
This commit is contained in:
@@ -385,7 +385,7 @@ static int tcrypt_load(struct crypt_device *cd, struct crypt_params_tcrypt *para
|
|||||||
unsigned long long tmp_pim_ull = 0;
|
unsigned long long tmp_pim_ull = 0;
|
||||||
|
|
||||||
r = tools_get_key(_("Enter VeraCrypt PIM: "),
|
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),
|
&tmp_pim_size, 0, 0, keyfile_stdin, ARG_UINT32(OPT_TIMEOUT_ID),
|
||||||
_verify_passphrase(0), 0, cd);
|
_verify_passphrase(0), 0, cd);
|
||||||
if (r < 0)
|
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."));
|
log_err(_("Invalid PIM value: outside of range."));
|
||||||
r = -ERANGE;
|
r = -ERANGE;
|
||||||
}
|
}
|
||||||
crypt_safe_free(CONST_CAST(char*)tmp_pim_nptr);
|
crypt_safe_free(tmp_pim_nptr);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user