diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-09-29 16:30:57 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-10-14 10:29:30 +0200 |
commit | f217612fade6684c6003aea9a9bfc7ab41685ace (patch) | |
tree | 65ebc4daa0720dd13034840f716437671160f54d /extra/comp_err.c | |
parent | 927521a2c18954f03869e91281b90af79b719166 (diff) | |
download | mariadb-git-f217612fade6684c6003aea9a9bfc7ab41685ace.tar.gz |
MDEV-12684 Show what config file a sysvar got a value from
change get_one_option() prototype to pass the filename and
not to pass the redundant optid.
Diffstat (limited to 'extra/comp_err.c')
-rw-r--r-- | extra/comp_err.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/extra/comp_err.c b/extra/comp_err.c index 704bbc0eaf6..a504832a60f 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -150,8 +150,6 @@ static uint parse_input_file(const char *file_name, struct errors **top_error, static int get_options(int *argc, char ***argv); static void print_version(void); static void usage(void); -static my_bool get_one_option(int optid, const struct my_option *opt, - char *argument); static char *parse_text_line(char *pos); static int copy_rows(FILE * to, char *row, int row_nr, long start_pos); static char *parse_default_language(char *str); @@ -1134,11 +1132,12 @@ static void print_version(void) static my_bool -get_one_option(int optid, const struct my_option *opt __attribute__ ((unused)), - char *argument __attribute__ ((unused))) +get_one_option(const struct my_option *opt, + char *argument __attribute__ ((unused)), + const char *filename __attribute__ ((unused))) { DBUG_ENTER("get_one_option"); - switch (optid) { + switch (opt->id) { case 'V': print_version(); my_end(0); |