We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2105b8c commit 26b10abCopy full SHA for 26b10ab
1 file changed
wsl-samples/afunix-wsl-interop/windows_server/af_unix_win_server.cpp
@@ -1,11 +1,13 @@
1
#undef UNICODE
2
3
+#pragma warning(push, 0)
4
#include <winsock2.h>
5
#include <windows.h>
6
#include <ws2tcpip.h>
7
#include <afunix.h>
8
#include <stdlib.h>
9
#include <stdio.h>
10
+#pragma warning(pop)
11
12
#define SERVER_SOCKET "server.sock"
13
@@ -30,7 +32,7 @@ int __cdecl main(void)
30
32
// Create a AF_UNIX stream server socket.
31
33
ListenSocket = socket(AF_UNIX, SOCK_STREAM, 0);
34
if (ListenSocket == INVALID_SOCKET) {
- printf("socket failed with error: %ld\n", WSAGetLastError());
35
+ printf("socket failed with error: %d\n", WSAGetLastError());
36
goto Exit;
37
}
38
0 commit comments