From 7662e7d843f4248103ca818c43ff59e2683e30d5 Mon Sep 17 00:00:00 2001 From: Tohei Ichikawa Date: Sun, 8 Jun 2025 16:07:11 -0400 Subject: [PATCH] Removed obsolete `tz` param from `gettimeofday` --- core/sys/linux/sys.odin | 4 ++-- core/sys/linux/types.odin | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index e9d0f4d76..0e4cebce2 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -1412,8 +1412,8 @@ umask :: proc "contextless" (mask: Mode) -> Mode { Get current time. Available since Linux 1.0. */ -gettimeofday :: proc "contextless" (tv: ^Time_Val, tz: ^Time_Zone) -> (Errno) { - ret := syscall(SYS_gettimeofday, tv, tz) +gettimeofday :: proc "contextless" (tv: ^Time_Val) -> (Errno) { + ret := syscall(SYS_gettimeofday, tv, nil) return Errno(-ret) } diff --git a/core/sys/linux/types.odin b/core/sys/linux/types.odin index 77a0b8ef4..08e0026d3 100644 --- a/core/sys/linux/types.odin +++ b/core/sys/linux/types.odin @@ -72,14 +72,6 @@ Time_Val :: struct { microseconds: int, } -/* - Represents a time zone. -*/ -Time_Zone :: struct { - minutes_west: int, - dst_time: int, -} - /* Access and modification times for files */