Fixed compiler errors (i.e. changed C++-isms into C)

This commit is contained in:
pem@mysql.comhem.se 2005-06-29 14:23:43 +02:00
parent 3df73db1cf
commit 6fd1e8227e
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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));