From: Bruno Haible Date: Sun, 16 Aug 2020 11:00:59 +0000 (+0200) Subject: Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead". X-Git-Tag: v1.0~3737 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0fc41d2b9777053f57199426a1e14e6fa425d3c5;p=gnulib.git Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead". * lib/socket.c: Use WSASocketW, not WSASocketA. --- diff --git a/ChangeLog b/ChangeLog index c939272763..7ac37a67e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2020-08-16 Bruno Haible + Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead". + * lib/socket.c: Use WSASocketW, not WSASocketA. + Fix "warning: format specifies type 'unsigned long'". * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf argument to match the format directive. diff --git a/lib/socket.c b/lib/socket.c index ebf777f25f..34e59caeb3 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -28,9 +28,9 @@ #include "sockets.h" -/* Don't assume that UNICODE is not defined. */ +/* Don't assume that UNICODE is defined. */ #undef WSASocket -#define WSASocket WSASocketA +#define WSASocket WSASocketW int rpl_socket (int domain, int type, int protocol)