summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorulli@morbus.(none) <>2004-02-26 19:09:49 +0100
committerulli@morbus.(none) <>2004-02-26 19:09:49 +0100
commit709a5d6a8b5b3dc43d45eec27bda9d3f9bc38b57 (patch)
tree563559d196bf03d07c57388b1cfe13c09a1d5b6b /client
parent3d750efcb1dc3566df708261b61e8f55b8a46b56 (diff)
downloadmariadb-git-709a5d6a8b5b3dc43d45eec27bda9d3f9bc38b57.tar.gz
fix for bug #2905 -
"mysqladmin.c & co fail to use MYSQL_PORT as the default value of the TCP/IP port"
Diffstat (limited to 'client')
-rw-r--r--client/mysqladmin.c2
-rw-r--r--client/mysqltest.c2
-rw-r--r--client/thread_test.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqladmin.c b/client/mysqladmin.c
index 09e6bf98f1c..6bd2d3caad1 100644
--- a/client/mysqladmin.c
+++ b/client/mysqladmin.c
@@ -134,7 +134,7 @@ static struct my_option my_long_options[] =
NO_ARG, 0, 0, 0, 0, 0, 0},
#endif
{"port", 'P', "Port number to use for connection.", (gptr*) &tcp_port,
- (gptr*) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ (gptr*) &tcp_port, 0, GET_UINT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0, 0},
{"relative", 'r',
"Show difference between current and previous values when used with -i. Currently works only with extended-status.",
(gptr*) &opt_relative, (gptr*) &opt_relative, 0, GET_BOOL, NO_ARG, 0, 0, 0,
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 13f575eaf0a..f41f697ad26 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1879,7 +1879,7 @@ static struct my_option my_long_options[] =
{"password", 'p', "Password to use when connecting to server.",
0, 0, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
{"port", 'P', "Port number to use for connection.", (gptr*) &port,
- (gptr*) &port, 0, GET_INT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ (gptr*) &port, 0, GET_INT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0, 0},
{"quiet", 's', "Suppress all normal output.", (gptr*) &silent,
(gptr*) &silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"record", 'r', "Record output of test_file into result file.",
diff --git a/client/thread_test.c b/client/thread_test.c
index 2900ab712e2..66ca45bf1cf 100644
--- a/client/thread_test.c
+++ b/client/thread_test.c
@@ -104,7 +104,7 @@ static struct my_option my_long_options[] =
{"query", 'Q', "Query to execute in each threads", (gptr*) &query,
(gptr*) &query, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"port", 'P', "Port number to use for connection", (gptr*) &tcp_port,
- (gptr*) &tcp_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ (gptr*) &tcp_port, 0, GET_UINT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0, 0},
{"socket", 'S', "Socket file to use for connection", (gptr*) &unix_socket,
(gptr*) &unix_socket, 0, GET_STR_ALLOC, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"test-count", 'c', "Run test count times (default %d)",