summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-08-23 08:27:46 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-08-23 08:27:46 +0000
commitaaddac5cd7b23795ee617ee6f8b5613eec343e79 (patch)
tree60f3edbd9f3a70c6c5e21b1472956527730099e8 /tests
parent58cd69fc808cade5ec3183a56b9d16957f0da02c (diff)
downloadmariadb-git-aaddac5cd7b23795ee617ee6f8b5613eec343e79.tar.gz
fix compile errors
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index c3b932addec..03aaebaddbc 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -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);