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:
Milan Broz
2021-02-04 21:39:56 +01:00
parent 85f7ee59f8
commit d703301fe8
29 changed files with 104 additions and 99 deletions

View File

@@ -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));