mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-17 13:50:06 +01:00
Mark or remove unused parameters.
Mark unused parameters with proper attribute where it is a part of API or some internal logic. And remove other unused parameters completely.
This commit is contained in:
@@ -61,7 +61,7 @@ void tools_parse_arg_value(poptContext popt_context, crypt_arg_type_info type, s
|
||||
case CRYPT_ARG_UINT64:
|
||||
/* special size strings with units converted to integers */
|
||||
if (needs_size_conv_fn && needs_size_conv_fn(popt_val)) {
|
||||
if (tools_string_to_size(NULL, popt_arg, &arg->u.u64_value)) {
|
||||
if (tools_string_to_size(popt_arg, &arg->u.u64_value)) {
|
||||
snprintf(msg, sizeof(msg), _("Invalid size specification in parameter --%s."), arg->name);
|
||||
usage(popt_context, EXIT_FAILURE, msg,
|
||||
poptGetInvocationName(popt_context));
|
||||
|
||||
Reference in New Issue
Block a user