summaryrefslogtreecommitdiff
path: root/client/mysqladmin.c
diff options
context:
space:
mode:
authorunknown <ulli@morbus.(none)>2004-02-26 19:09:49 +0100
committerunknown <ulli@morbus.(none)>2004-02-26 19:09:49 +0100
commitcae2503b0b2eff4e8256d67fca66de904fbfe34d (patch)
tree563559d196bf03d07c57388b1cfe13c09a1d5b6b /client/mysqladmin.c
parente0618ae4ae6d6d0a505e3624d6ee50f687c393d5 (diff)
downloadmariadb-git-cae2503b0b2eff4e8256d67fca66de904fbfe34d.tar.gz
fix for bug #2905 -
"mysqladmin.c & co fail to use MYSQL_PORT as the default value of the TCP/IP port" client/mysqladmin.c: changed the value after REQUIRED_ARG from 0 to MYSQL_PORT client/mysqltest.c: changed the value after REQUIRED_ARG from 0 to MYSQL_PORT client/thread_test.c: changed the value after REQUIRED_ARG from 0 to MYSQL_PORT BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'client/mysqladmin.c')
-rw-r--r--client/mysqladmin.c2
1 files changed, 1 insertions, 1 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,