diff options
Diffstat (limited to 'tests/async_queries.c')
-rw-r--r-- | tests/async_queries.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/async_queries.c b/tests/async_queries.c index a8889fc8d5a..e1b7061eaa9 100644 --- a/tests/async_queries.c +++ b/tests/async_queries.c @@ -314,8 +314,8 @@ add_query(const char *q) char *q2; size_t len; - e= my_malloc(sizeof(*e), MYF(0)); - q2= my_strdup(q, MYF(0)); + e= my_malloc(PSI_NOT_INSTRUMENTED, sizeof(*e), MYF(0)); + q2= my_strdup(PSI_NOT_INSTRUMENTED, q, MYF(0)); if (!e || !q2) fatal(NULL, "Out of memory"); @@ -335,10 +335,10 @@ add_query(const char *q) static my_bool -handle_option(int optid, const struct my_option *opt __attribute__((unused)), - char *arg) +handle_option(const struct my_option *opt, char *arg, + const char *filename __attribute__((unused))) { - switch (optid) + switch (opt->id) { case '?': printf("Usage: async_queries [OPTIONS] query ...\n"); @@ -394,7 +394,7 @@ main(int argc, char *argv[]) add_query(*argv++); } - sds= my_malloc(opt_connections * sizeof(*sds), MYF(0)); + sds= my_malloc(PSI_NOT_INSTRUMENTED, opt_connections * sizeof(*sds), MYF(0)); if (!sds) fatal(NULL, "Out of memory"); |