| author | |
| committer | |
| log | 6d41e086647d7b872512993e4acbf411880b48d1 |
| tree | 299a8b86b62a5cdccb7cc777da27e9b00a2ef8e5 |
| parent | 6cb6edb6f6e6abc73ddb1765631e22a5085f2545 |
2 files changed, 1 insertions(+), 3 deletions(-)
lib/std/os.zig+1-1| ... | ... | @@ -5751,7 +5751,7 @@ pub const SetSockOptError = error{ |
| 5751 | 5751 | /// Set a socket's options. |
| 5752 | 5752 | pub fn setsockopt(fd: socket_t, level: u32, optname: u32, opt: []const u8) SetSockOptError!void { |
| 5753 | 5753 | if (builtin.os.tag == .windows) { |
| 5754 | const rc = windows.ws2_32.setsockopt(fd, level, optname, opt.ptr, @intCast(socklen_t, opt.len)); | |
| 5754 | const rc = windows.ws2_32.setsockopt(fd, @intCast(i32, level), @intCast(i32, optname), opt.ptr, @intCast(i32, opt.len)); | |
| 5755 | 5755 | if (rc == windows.ws2_32.SOCKET_ERROR) { |
| 5756 | 5756 | switch (windows.ws2_32.WSAGetLastError()) { |
| 5757 | 5757 | .WSANOTINITIALISED => unreachable, |
lib/std/x/os/socket_windows.zig-2| ... | ... | @@ -374,8 +374,6 @@ pub fn Mixin(comptime Socket: type) type { |
| 374 | 374 | .WSAEFAULT => unreachable, |
| 375 | 375 | .WSAENOTSOCK => return error.FileDescriptorNotASocket, |
| 376 | 376 | .WSAEINVAL => return error.SocketNotBound, |
| 377 | .WSAENOTCONN => return error.SocketNotConnected, | |
| 378 | .WSAESHUTDOWN => return error.AlreadyShutdown, | |
| 379 | 377 | else => |err| windows.unexpectedWSAError(err), |
| 380 | 378 | }; |
| 381 | 379 | } |