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 /client/mysqladmin.cc | |
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 'client/mysqladmin.cc')
-rw-r--r-- | client/mysqladmin.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc index 32096fef996..bc1403b283a 100644 --- a/client/mysqladmin.cc +++ b/client/mysqladmin.cc @@ -241,10 +241,9 @@ static const char *load_default_groups[]= 0 }; my_bool -get_one_option(int optid, const struct my_option *opt __attribute__((unused)), - char *argument) +get_one_option(const struct my_option *opt, char *argument, const char *) { - switch(optid) { + switch(opt->id) { case 'c': opt_count_iterations= 1; break; |