Commit 8bcbdaf7 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: remove unused arguments

parent 6f65931f
...@@ -151,7 +151,7 @@ static char *remove_end_comment(char *ptr); ...@@ -151,7 +151,7 @@ static char *remove_end_comment(char *ptr);
--defaults_group_suffix --defaults_group_suffix
*/ */
static int my_search_option_files(const char *conf_file, int *argc, char ***argv, static int my_search_option_files(const char *conf_file,
struct handle_option_ctx *ctx, struct handle_option_ctx *ctx,
const char **default_directories) const char **default_directories)
{ {
...@@ -444,8 +444,7 @@ int my_load_defaults(const char *conf_file, const char **groups, int *argc, ...@@ -444,8 +444,7 @@ int my_load_defaults(const char *conf_file, const char **groups, int *argc,
ctx.args= &args; ctx.args= &args;
ctx.group= &group; ctx.group= &group;
if ((error= my_search_option_files(conf_file, argc - args_used, if ((error= my_search_option_files(conf_file, &ctx, dirs)))
argv + args_used, &ctx, dirs)))
{ {
delete_dynamic(&args); delete_dynamic(&args);
free_root(&alloc,MYF(0)); free_root(&alloc,MYF(0));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment