From cae2503b0b2eff4e8256d67fca66de904fbfe34d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Feb 2004 19:09:49 +0100 Subject: 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 --- client/mysqladmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/mysqladmin.c') 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, -- cgit v1.2.1