mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 02:34:05 +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.
|
||||
*/
|
||||
gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) {
|
||||
null: uintptr
|
||||
ret := syscall(SYS_gettimeofday, tv, null)
|
||||
ret := syscall(SYS_gettimeofday, tv, rawptr(nil))
|
||||
return Errno(-ret)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user