mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
parent
31bc6d5a9d
commit
aa1556156e
1 changed files with 1 additions and 1 deletions
|
|
@ -4335,7 +4335,7 @@ pub const GetSockOptError = error{
|
|||
} || UnexpectedError;
|
||||
|
||||
pub fn getsockopt(fd: socket_t, level: i32, optname: u32, opt: []u8) GetSockOptError!void {
|
||||
var len: socklen_t = undefined;
|
||||
var len: socklen_t = @intCast(opt.len);
|
||||
switch (errno(system.getsockopt(fd, level, optname, opt.ptr, &len))) {
|
||||
.SUCCESS => {
|
||||
std.debug.assert(len == opt.len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue