Browse Source

Use idiomatic `rawptr(nil)`

Feoramund 3 months ago
parent
commit
0747032e4a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/sys/linux/sys.odin

+ 1 - 2
core/sys/linux/sys.odin

@@ -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, null)
+	ret := syscall(SYS_gettimeofday, tv, rawptr(nil))
 	return Errno(-ret)
 	return Errno(-ret)
 }
 }