Commit 4fa14086 authored by hf@deer.mysql.r18.ru's avatar hf@deer.mysql.r18.ru

fix removation

parent 7d20900c
...@@ -956,8 +956,8 @@ static void set_ports() ...@@ -956,8 +956,8 @@ static void set_ports()
{ // Get port if not from commandline { // Get port if not from commandline
struct servent *serv_ptr; struct servent *serv_ptr;
mysql_port = MYSQL_PORT; mysql_port = MYSQL_PORT;
// if ((serv_ptr = getservbyname("mysql", "tcp"))) if ((serv_ptr = getservbyname("mysql", "tcp")))
// mysql_port = ntohs((u_short) serv_ptr->s_port); /* purecov: inspected */ mysql_port = ntohs((u_short) serv_ptr->s_port); /* purecov: inspected */
if ((env = getenv("MYSQL_TCP_PORT"))) if ((env = getenv("MYSQL_TCP_PORT")))
mysql_port = (uint) atoi(env); /* purecov: inspected */ mysql_port = (uint) atoi(env); /* purecov: inspected */
} }
......
...@@ -25,8 +25,7 @@ ...@@ -25,8 +25,7 @@
#include "sql_select.h" #include "sql_select.h"
#include "sql_acl.h" #include "sql_acl.h"
//extern const char *any_db="*any*"; // Special symbol for check_access extern const char *any_db="*any*"; // Special symbol for check_access
extern const char *any_db;
/* /*
Resolve derived tables in all queries Resolve derived tables in all queries
......
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