Use idiomatic rawptr(nil)

This commit is contained in:
Feoramund
2025-06-08 17:46:48 -04:00
parent 54f018ffc7
commit 0747032e4a

View File

@@ -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)
}