Commit 49bae459 authored by unknown's avatar unknown

Fix after review

parent 91141895
...@@ -381,10 +381,10 @@ static void lock_table(MYSQL *mysql, int tablecount, char **raw_tablename) ...@@ -381,10 +381,10 @@ static void lock_table(MYSQL *mysql, int tablecount, char **raw_tablename)
static MYSQL* db_connect(char *host, char *database, static MYSQL *db_connect(char *host, char *database,
char *user, char *passwd) char *user, char *passwd)
{ {
MYSQL* mysql; MYSQL *mysql;
if (verbose) if (verbose)
fprintf(stdout, "Connecting to %s\n", host ? host : "localhost"); fprintf(stdout, "Connecting to %s\n", host ? host : "localhost");
if (!(mysql= mysql_init(NULL))) if (!(mysql= mysql_init(NULL)))
...@@ -516,7 +516,7 @@ pthread_handler_t worker_thread(void *arg) ...@@ -516,7 +516,7 @@ pthread_handler_t worker_thread(void *arg)
{ {
int error; int error;
char *raw_table_name= (char *)arg; char *raw_table_name= (char *)arg;
MYSQL* mysql; MYSQL *mysql;
if (!(mysql= db_connect(current_host,current_db,current_user,opt_password))) if (!(mysql= db_connect(current_host,current_db,current_user,opt_password)))
{ {
goto error; goto error;
...@@ -609,7 +609,7 @@ int main(int argc, char **argv) ...@@ -609,7 +609,7 @@ int main(int argc, char **argv)
} }
else else
{ {
MYSQL* mysql= 0; MYSQL *mysql= 0;
if (!(mysql= db_connect(current_host,current_db,current_user,opt_password))) if (!(mysql= db_connect(current_host,current_db,current_user,opt_password)))
{ {
free_defaults(argv_to_free); free_defaults(argv_to_free);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment