]> Savannah Git Hosting - gnulib.git/commitdiff
Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
authorBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:59 +0000 (13:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 16 Aug 2020 11:00:59 +0000 (13:00 +0200)
* lib/socket.c: Use WSASocketW, not WSASocketA.

ChangeLog
lib/socket.c

index c9392727639f3dfe7bbaf3856f5965062ad9cb99..7ac37a67e48894a246ab2076b470ebbe93e0c0c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2020-08-16  Bruno Haible  <bruno@clisp.org>
 
+       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.
index ebf777f25f62732ed27e5ba451e922cbdc37a40b..34e59caeb3e23d5fe04ac583c1b3f25934514569 100644 (file)
@@ -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)