summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-01-29 14:21:13 +0200
committermonty@donna.mysql.com <>2001-01-29 14:21:13 +0200
commit54502646df066fe049f71853b58b7229d87c98bd (patch)
tree607bf0a38b47f9f5f64c7e7f7de80eaf9220e6d5 /client
parent0b470dd3538f36185c8421d22933e1fb4e02e2ea (diff)
downloadmariadb-git-54502646df066fe049f71853b58b7229d87c98bd.tar.gz
Removed that --port defaults to TCP/IP
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc4
-rw-r--r--client/mysqladmin.c4
-rw-r--r--client/mysqldump.c4
-rw-r--r--client/mysqlshow.c4
-rw-r--r--client/mysqltest.c4
5 files changed, 0 insertions, 20 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 11bf5640020..d0300344ba4 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -692,10 +692,6 @@ static int get_options(int argc, char **argv)
skip_column_names=1;
break;
case 'P':
- if(!current_host) {
- my_free(current_host, MYF(MY_ALLOW_ZERO_PTR));
- current_host=my_strdup("127.0.0.1", MYF(MY_WME));
- };
opt_mysql_port= (unsigned int) atoi(optarg);
break;
case 'S':
diff --git a/client/mysqladmin.c b/client/mysqladmin.c
index b17559aafd6..2a9d47edf44 100644
--- a/client/mysqladmin.c
+++ b/client/mysqladmin.c
@@ -185,10 +185,6 @@ int main(int argc,char *argv[])
interval=atoi(optarg);
break;
case 'P':
- if(!host) {
- my_free(host, MYF(MY_ALLOW_ZERO_PTR));
- host=my_strdup("127.0.0.1", MYF(MY_WME));
- };
tcp_port= (unsigned int) atoi(optarg);
break;
case 'r':
diff --git a/client/mysqldump.c b/client/mysqldump.c
index c5ae758541c..efb632cf5e4 100644
--- a/client/mysqldump.c
+++ b/client/mysqldump.c
@@ -344,10 +344,6 @@ static int get_options(int *argc,char ***argv)
tty_password=1;
break;
case 'P':
- if(!current_host) {
- my_free(current_host, MYF(MY_ALLOW_ZERO_PTR));
- current_host=my_strdup("127.0.0.1", MYF(MY_WME));
- };
opt_mysql_port= (unsigned int) atoi(optarg);
break;
case 'S':
diff --git a/client/mysqlshow.c b/client/mysqlshow.c
index f341108d8d4..8fffe02a52f 100644
--- a/client/mysqlshow.c
+++ b/client/mysqlshow.c
@@ -238,10 +238,6 @@ get_options(int *argc,char ***argv)
break;
#endif
case 'P':
- if(!host) {
- my_free(host, MYF(MY_ALLOW_ZERO_PTR));
- host=my_strdup("127.0.0.1", MYF(MY_WME));
- };
opt_mysql_port= (unsigned int) atoi(optarg);
break;
case 'S':
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 7c708254f1c..953f770240b 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -1154,10 +1154,6 @@ int parse_args(int argc, char **argv)
tty_password=1;
break;
case 'P':
- if(!host) {
- my_free(host, MYF(MY_ALLOW_ZERO_PTR));
- host=my_strdup("127.0.0.1", MYF(MY_WME));
- };
port = atoi(optarg);
break;
case 'S':