1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix Win64 warnings. Correctly define my_socket in ma_global.h

This commit is contained in:
Vladislav Vaintroub
2016-10-12 21:04:55 +00:00
parent e34a595ce2
commit 7cb8479605
10 changed files with 27 additions and 20 deletions

View File

@@ -2703,12 +2703,12 @@ mysql_optionsv(MYSQL *mysql,enum mysql_option option, ...)
break;
case MYSQL_OPT_MAX_ALLOWED_PACKET:
if (mysql)
mysql->options.max_allowed_packet= (*(size_t *)arg1);
mysql->options.max_allowed_packet= (unsigned long)(*(size_t *)arg1);
else
max_allowed_packet= (*(size_t *)arg1);
max_allowed_packet= (unsigned long)(*(size_t *)arg1);
break;
case MYSQL_OPT_NET_BUFFER_LENGTH:
net_buffer_length= (*(size_t *)arg1);
net_buffer_length= (unsigned long)(*(size_t *)arg1);
break;
case MYSQL_OPT_SSL_ENFORCE:
mysql->options.use_ssl= (*(my_bool *)arg1);