commit 254c79125b7bc664ef2bfa1e81dcd170ab49aef2 (tree)
parent d99f0a2b8fc3c8617e95396d3c308fccf8beceb6
Author: daurnimator <quae@daurnimator.com>
Date: Fri, 22 Nov 2019 14:49:24 +1100
std: fix WSAIoctl definition
zig automatically passes functions as pointers
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git 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
@@ -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;