diff options
| author | daurnimator <quae@daurnimator.com> | 2019-11-22 14:49:24 +1100 |
|---|---|---|
| committer | daurnimator <quae@daurnimator.com> | 2019-11-27 13:01:28 +1100 |
| commit | 254c79125b7bc664ef2bfa1e81dcd170ab49aef2 (patch) | |
| tree | eed34a9e97b06d523ed76790a04d81310c739ff7 /lib/std | |
| parent | d99f0a2b8fc3c8617e95396d3c308fccf8beceb6 (diff) | |
| download | zig-254c79125b7bc664ef2bfa1e81dcd170ab49aef2.tar.gz zig-254c79125b7bc664ef2bfa1e81dcd170ab49aef2.zip | |
std: fix WSAIoctl definition
zig automatically passes functions as pointers
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/windows.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/windows/ws2_32.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 601f3a79b9..7dddd39c41 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -708,7 +708,7 @@ pub fn WSAIoctl( inBuffer: ?[]const u8, outBuffer: []u8, overlapped: ?*ws2_32.WSAOVERLAPPED, - completionRoutine: ?*ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE, + completionRoutine: ?ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE, ) !DWORD { var bytes: DWORD = undefined; switch (ws2_32.WSAIoctl( diff --git a/lib/std/os/windows/ws2_32.zig b/lib/std/os/windows/ws2_32.zig index faaaedd443..ecb68a259e 100644 --- a/lib/std/os/windows/ws2_32.zig +++ b/lib/std/os/windows/ws2_32.zig @@ -250,5 +250,5 @@ pub extern "ws2_32" stdcallcc fn WSAIoctl( cbOutBuffer: DWORD, lpcbBytesReturned: LPDWORD, lpOverlapped: ?*WSAOVERLAPPED, - lpCompletionRoutine: ?*WSAOVERLAPPED_COMPLETION_ROUTINE, + lpCompletionRoutine: ?WSAOVERLAPPED_COMPLETION_ROUTINE, ) c_int; |
