mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-23 16:07:52 +00:00
Work around untyped nil
This commit is contained in:
@@ -1413,7 +1413,8 @@ umask :: proc "contextless" (mask: Mode) -> Mode {
|
|||||||
Available since Linux 1.0.
|
Available since Linux 1.0.
|
||||||
*/
|
*/
|
||||||
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
||||||
ret := syscall(SYS_gettimeofday, tv, nil)
|
null: uintptr
|
||||||
|
ret := syscall(SYS_gettimeofday, tv, null)
|
||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user