mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Use idiomatic rawptr(nil)
This commit is contained in:
@@ -1413,8 +1413,7 @@ 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) {
|
||||||
null: uintptr
|
ret := syscall(SYS_gettimeofday, tv, rawptr(nil))
|
||||||
ret := syscall(SYS_gettimeofday, tv, null)
|
|
||||||
return Errno(-ret)
|
return Errno(-ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user