mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix compile errors
This commit is contained in:
@ -73,7 +73,6 @@ MYSQL_ADD_EXECUTABLE(mariabackup
|
|||||||
backup_mysql.cc
|
backup_mysql.cc
|
||||||
backup_copy.cc
|
backup_copy.cc
|
||||||
encryption_plugin.cc
|
encryption_plugin.cc
|
||||||
${PROJECT_SOURCE_DIR}/sql/net_serv.cc
|
|
||||||
${NT_SERVICE_SOURCE}
|
${NT_SERVICE_SOURCE}
|
||||||
${PROJECT_SOURCE_DIR}/libmysqld/libmysql.c
|
${PROJECT_SOURCE_DIR}/libmysqld/libmysql.c
|
||||||
COMPONENT backup
|
COMPONENT backup
|
||||||
|
@ -53,8 +53,8 @@ static int parse_v1_header(char *hdr, size_t len, proxy_peer_info *peer_info)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client_port < 0 || client_port > UINT16_MAX
|
if (client_port < 0 || client_port > 0xffff
|
||||||
|| server_port < 0 || server_port > UINT16_MAX)
|
|| server_port < 0 || server_port > 0xffff)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (!strcmp(address_family, "UNKNOWN"))
|
if (!strcmp(address_family, "UNKNOWN"))
|
||||||
|
@ -19679,7 +19679,7 @@ static void test_proxy_header_tcp(const char *ipaddr, int port)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
// normalize IPv4-mapped IPv6 addresses, e.g ::ffff:192.168.0.1 to 192.168.0.1
|
// normalize IPv4-mapped IPv6 addresses, e.g ::ffff:192.168.0.1 to 192.168.0.1
|
||||||
char *normalized_addr= strncmp(ipaddr, "::ffff:", 7)?ipaddr : ipaddr + 7;
|
const char *normalized_addr= strncmp(ipaddr, "::ffff:", 7)?ipaddr : ipaddr + 7;
|
||||||
|
|
||||||
memset(&v2_header, 0, sizeof(v2_header));
|
memset(&v2_header, 0, sizeof(v2_header));
|
||||||
sprintf(text_header,"PROXY %s %s %s %d 3306\r\n",family == AF_INET?"TCP4":"TCP6", ipaddr, ipaddr, port);
|
sprintf(text_header,"PROXY %s %s %s %d 3306\r\n",family == AF_INET?"TCP4":"TCP6", ipaddr, ipaddr, port);
|
||||||
|
Reference in New Issue
Block a user