* lib/socket.c: Use WSASocketW, not WSASocketA.
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.
#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)