diff options
author | unknown <pem@mysql.comhem.se> | 2005-06-29 14:23:43 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2005-06-29 14:23:43 +0200 |
commit | fdea64fed0c67e0c679d54fc6be5b3daeca9de3a (patch) | |
tree | c3c2018b277db2cdcc02de6100bce144f2ed220c /client | |
parent | 22711360ddd448a365583b47341542cabc8d57fc (diff) | |
download | mariadb-git-fdea64fed0c67e0c679d54fc6be5b3daeca9de3a.tar.gz |
Fixed compiler errors (i.e. changed C++-isms into C)
client/mysqldump.c:
Moved variable declaration to beginning of block (and removed const to get rid of warnings).
client/mysqltest.c:
Moved DBUG_PRINT after variable declarations.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqldump.c | 2 | ||||
-rw-r--r-- | client/mysqltest.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 66bc4fcb896..c75f02353b4 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -2398,6 +2398,7 @@ static int dump_selected_tables(char *db, char **table_names, int tables) char new_table_name[NAME_LEN]; DYNAMIC_STRING lock_tables_query; HASH dump_tables; + char *table_name; DBUG_ENTER("dump_selected_tables"); @@ -2457,7 +2458,6 @@ static int dump_selected_tables(char *db, char **table_names, int tables) print_xml_tag1(md_result_file, "", "database name=", db, "\n"); /* Dump each selected table */ - const char *table_name; for (i= 0; i < dump_tables.records; i++) { table_name= hash_element(&dump_tables, i); diff --git a/client/mysqltest.c b/client/mysqltest.c index 7fdaf1098c2..a7f9420df6d 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -994,10 +994,10 @@ static void do_exec(struct st_query* q) die("At line %u: command \"%s\" failed", start_lineno, cmd); else { - DBUG_PRINT("info", - ("error: %d, status: %d", error, status)); bool ok= 0; uint i; + DBUG_PRINT("info", + ("error: %d, status: %d", error, status)); for (i=0 ; (uint) i < q->expected_errors ; i++) { DBUG_PRINT("info", ("expected error: %d", q->expected_errno[i].code.errnum)); |