diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-22 17:40:59 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-22 17:40:59 +0300 |
commit | 5e0851e1b37debb59dbe184fcc3485470872ac64 (patch) | |
tree | 75eeebf6f1ad1178e0336276e6a73857a6c5b8b8 /client | |
parent | d037709b178c34222400deb78727d6f2cf1e5478 (diff) | |
download | mariadb-git-5e0851e1b37debb59dbe184fcc3485470872ac64.tar.gz |
Portability fix
sql/gen_lex_hash.cc:
Smaller array
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 1361dc843ed..9a2d3e4c137 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -46,19 +46,15 @@ #define MTEST_VERSION "1.10" #include <my_global.h> +#include <mysql_embed.h> #include <my_sys.h> #include <m_string.h> #include <mysql.h> #include <mysql_version.h> +#include <mysqld_error.h> #include <m_ctype.h> -#ifdef OS2 -#include <config-os2.h> -#else - #include <my_config.h> -#endif #include <my_dir.h> #include <hash.h> -#include <mysqld_error.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> @@ -1067,18 +1063,18 @@ int close_connection(struct st_query* q) p++; *p = 0; - for(con = cons; con < next_con; con++) + for (con = cons; con < next_con; con++) { if (!strcmp(con->name, name)) { - if(q->type == Q_DIRTY_CLOSE) + if (q->type == Q_DIRTY_CLOSE) + { + if (con->mysql.net.vio) { - if(con->mysql.net.vio) - { - vio_delete(con->mysql.net.vio); - con->mysql.net.vio = 0; - } + vio_delete(con->mysql.net.vio); + con->mysql.net.vio = 0; } + } mysql_close(&con->mysql); DBUG_RETURN(0); |