Commit 54502646 authored by monty@donna.mysql.com's avatar monty@donna.mysql.com

Removed that --port defaults to TCP/IP

parent 0b470dd3
...@@ -692,10 +692,6 @@ static int get_options(int argc, char **argv) ...@@ -692,10 +692,6 @@ static int get_options(int argc, char **argv)
skip_column_names=1; skip_column_names=1;
break; break;
case 'P': 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); opt_mysql_port= (unsigned int) atoi(optarg);
break; break;
case 'S': case 'S':
......
...@@ -185,10 +185,6 @@ int main(int argc,char *argv[]) ...@@ -185,10 +185,6 @@ int main(int argc,char *argv[])
interval=atoi(optarg); interval=atoi(optarg);
break; break;
case 'P': 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); tcp_port= (unsigned int) atoi(optarg);
break; break;
case 'r': case 'r':
......
...@@ -344,10 +344,6 @@ static int get_options(int *argc,char ***argv) ...@@ -344,10 +344,6 @@ static int get_options(int *argc,char ***argv)
tty_password=1; tty_password=1;
break; break;
case 'P': 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); opt_mysql_port= (unsigned int) atoi(optarg);
break; break;
case 'S': case 'S':
......
...@@ -238,10 +238,6 @@ get_options(int *argc,char ***argv) ...@@ -238,10 +238,6 @@ get_options(int *argc,char ***argv)
break; break;
#endif #endif
case 'P': 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); opt_mysql_port= (unsigned int) atoi(optarg);
break; break;
case 'S': case 'S':
......
...@@ -1154,10 +1154,6 @@ int parse_args(int argc, char **argv) ...@@ -1154,10 +1154,6 @@ int parse_args(int argc, char **argv)
tty_password=1; tty_password=1;
break; break;
case 'P': 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); port = atoi(optarg);
break; break;
case 'S': case 'S':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment