1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

fix compile errors

This commit is contained in:
Vladislav Vaintroub
2017-08-23 08:27:46 +00:00
parent 58cd69fc80
commit aaddac5cd7
3 changed files with 3 additions and 4 deletions

View File

@@ -19679,7 +19679,7 @@ static void test_proxy_header_tcp(const char *ipaddr, int port)
int i;
// 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));
sprintf(text_header,"PROXY %s %s %s %d 3306\r\n",family == AF_INET?"TCP4":"TCP6", ipaddr, ipaddr, port);