>From 0fc41d2b9777053f57199426a1e14e6fa425d3c5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 13:00:59 +0200 Subject: [PATCH 12/13] Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead". * lib/socket.c: Use WSASocketW, not WSASocketA. --- ChangeLog | 3 +++ lib/socket.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c939272..7ac37a6 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 ebf777f..34e59ca 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) -- 2.7.4