mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
Fixed some simple warnings on Windows.
This commit is contained in:
parent
85a025f30c
commit
2451628923
14 changed files with 30 additions and 34 deletions
|
|
@ -2969,10 +2969,6 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
|
|||
const char *scramble_plugin;
|
||||
ulong pkt_length;
|
||||
NET *net= &mysql->net;
|
||||
#ifdef MYSQL_SERVER
|
||||
thr_alarm_t alarmed;
|
||||
ALARM alarm_buff;
|
||||
#endif
|
||||
#ifdef __WIN__
|
||||
HANDLE hPipe=INVALID_HANDLE_VALUE;
|
||||
#endif
|
||||
|
|
@ -3181,17 +3177,8 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
|
|||
|
||||
my_snprintf(host_info=buff, sizeof(buff)-1, ER(CR_TCP_CONNECTION), host);
|
||||
DBUG_PRINT("info",("Server name: '%s'. TCP sock: %d", host, port));
|
||||
#ifdef MYSQL_SERVER
|
||||
thr_alarm_init(&alarmed);
|
||||
thr_alarm(&alarmed, mysql->options.connect_timeout, &alarm_buff);
|
||||
#endif
|
||||
|
||||
DBUG_PRINT("info",("IP '%s'", "client"));
|
||||
|
||||
#ifdef MYSQL_SERVER
|
||||
thr_end_alarm(&alarmed);
|
||||
#endif
|
||||
|
||||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_socktype= SOCK_STREAM;
|
||||
hints.ai_protocol= IPPROTO_TCP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue