btrfs-progs: Remove unused parameter

Parameter usagestr is not used, remove it.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Gu Jinxiang 2018-03-30 10:56:50 +08:00 committed by David Sterba
parent 4e6e5804f2
commit 50417091a0
3 changed files with 3 additions and 4 deletions

View File

@ -1086,7 +1086,7 @@ static int cmd_filesystem_resize(int argc, char **argv)
DIR *dirstream = NULL;
struct stat st;
clean_args_no_options_relaxed(argc, argv, cmd_filesystem_resize_usage);
clean_args_no_options_relaxed(argc, argv);
if (check_argc_exact(argc - optind, 2))
usage(cmd_filesystem_resize_usage);

2
help.c
View File

@ -115,7 +115,7 @@ void clean_args_no_options(int argc, char *argv[], const char * const *usagestr)
* - "-- option1 option2 ..."
* - "option1 option2 ..."
*/
void clean_args_no_options_relaxed(int argc, char *argv[], const char * const *usagestr)
void clean_args_no_options_relaxed(int argc, char *argv[])
{
if (argc <= 1)
return;

3
help.h
View File

@ -72,8 +72,7 @@ int check_argc_exact(int nargs, int expected);
int check_argc_min(int nargs, int expected);
int check_argc_max(int nargs, int expected);
void clean_args_no_options(int argc, char *argv[], const char * const *usage);
void clean_args_no_options_relaxed(int argc, char *argv[],
const char * const *usagestr);
void clean_args_no_options_relaxed(int argc, char *argv[]);
void fixup_argv0(char **argv, const char *token);
void set_argv0(char **argv);