mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Windows, compiling : reenable warning C4996 (deprecated functions)
But set _CRT_NONSTDC_NO_WARNINGS to silence silly warnings about ANSI C function being non-standard Remove now deprecated GetVersion()/GetVersionEx(),except single case where where it is really needed, in feedback plugin. Remove checks for Windows NT. Avoid old IPv4-only inet_aton, which generated the warning.
This commit is contained in:
@ -979,7 +979,7 @@ static int check_connection(THD *thd)
|
||||
struct in_addr *ip4= &((struct sockaddr_in *) sa)->sin_addr;
|
||||
/* See RFC 5737, 192.0.2.0/24 is reserved. */
|
||||
const char* fake= "192.0.2.4";
|
||||
ip4->s_addr= inet_addr(fake);
|
||||
inet_pton(AF_INET,fake, &ip4);
|
||||
strcpy(ip, fake);
|
||||
peer_rc= 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user