mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
type error
This commit is contained in:
@@ -2413,7 +2413,7 @@ epoll_wait :: proc(epfd: Fd, events: [^]EPoll_Event, count: i32, timeout: i32) -
|
|||||||
} else {
|
} else {
|
||||||
// Convert milliseconds to nanosecond timespec
|
// Convert milliseconds to nanosecond timespec
|
||||||
timeout_ns := Time_Spec {
|
timeout_ns := Time_Spec {
|
||||||
time_sec = timeout * 1000,
|
time_sec = uint(timeout * 1000),
|
||||||
time_nsec = 0,
|
time_nsec = 0,
|
||||||
}
|
}
|
||||||
ret := syscall(SYS_epoll_pwait, epfd, events, count, &timeout_ns, rawptr(nil))
|
ret := syscall(SYS_epoll_pwait, epfd, events, count, &timeout_ns, rawptr(nil))
|
||||||
|
|||||||
Reference in New Issue
Block a user