mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-18 14:20:09 +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;
|
||||
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user