Even more style fixes

This commit is contained in:
gingerBill
2024-06-29 19:11:36 +01:00
parent 3f9a58808c
commit 5413a8b744
17 changed files with 41 additions and 46 deletions
+2 -2
View File
@@ -377,9 +377,9 @@ _set_blocking :: proc(sock: Any_Socket, should_block: bool) -> (err: Network_Err
return Set_Blocking_Error(errno)
}
if should_block {
flags &= ~{.NONBLOCK}
flags -= {.NONBLOCK}
} else {
flags |= {.NONBLOCK}
flags += {.NONBLOCK}
}
errno = linux.fcntl(os_sock, linux.F_SETFL, flags)
if errno != .NONE {