From f217612fade6684c6003aea9a9bfc7ab41685ace Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 29 Sep 2019 16:30:57 +0200 Subject: 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. --- client/mysqlslap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/mysqlslap.c') diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 473bb12dc11..996f9bb79c6 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -726,11 +726,11 @@ static void usage(void) static 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 *filename __attribute__((unused))) { DBUG_ENTER("get_one_option"); - switch(optid) { + switch(opt->id) { case 'v': verbose++; break; -- cgit v1.2.1