diff options
author | unknown <monty@narttu.mysql.fi> | 2003-10-07 15:44:31 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-10-07 15:44:31 +0300 |
commit | c7fd510a4191eb85890dddc235852f3b8a98362d (patch) | |
tree | 1d9214ae1674384fb38bf9c07e2776c1206842ee /client | |
parent | bc4a57f01ace40255de2f8d7307254fd1d1d5bfa (diff) | |
download | mariadb-git-c7fd510a4191eb85890dddc235852f3b8a98362d.tar.gz |
Simple cleanups
client/mysqlbinlog.cc:
Add default handling to mysqlbinlog
mysql-test/mysql-test-run.sh:
Cleanup of mysqldump/mysqlbinlog argument handling
scripts/Makefile.am:
Remove duplicate
scripts/mysql_install_db.sh:
Change -eq to =
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlbinlog.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index 84dcc4a7395..8e108e20299 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -40,6 +40,7 @@ static FILE *result_file; #ifndef DBUG_OFF static const char* default_dbug_option = "d:t:o,/tmp/mysqlbinlog.trace"; #endif +static const char *load_default_groups[]= { "mysqlbinlog","client",0 }; void sql_print_error(const char *format, ...); @@ -278,7 +279,7 @@ static void die(const char* fmt, ...) static void print_version() { - printf("%s Ver 2.3 for %s at %s\n", my_progname, SYSTEM_TYPE, MACHINE_TYPE); + printf("%s Ver 2.4 for %s at %s\n", my_progname, SYSTEM_TYPE, MACHINE_TYPE); } @@ -374,6 +375,7 @@ static int parse_args(int *argc, char*** argv) int ho_error; result_file = stdout; + load_defaults("my",load_default_groups,argc,argv); if ((ho_error=handle_options(argc, argv, my_long_options, get_one_option))) exit(ho_error); @@ -743,12 +745,16 @@ void free_tmpdir(MY_TMPDIR *tmpdir) int main(int argc, char** argv) { + static char **defaults_argv; MY_INIT(argv[0]); + parse_args(&argc, (char***)&argv); + defaults_argv=argv; if (!argc) { usage(); + free_defaults(defaults_argv); return -1; } @@ -778,6 +784,8 @@ int main(int argc, char** argv) my_fclose(result_file, MYF(0)); if (use_remote) mysql_close(mysql); + free_defaults(defaults_argv); + my_end(0); return 0; } |