Selaa lähdekoodia

Removed obsolete `tz` param from `gettimeofday`

Tohei Ichikawa 3 kuukautta sitten
vanhempi
commit
7662e7d843
2 muutettua tiedostoa jossa 2 lisäystä ja 10 poistoa
  1. 2 2
      core/sys/linux/sys.odin
  2. 0 8
      core/sys/linux/types.odin

+ 2 - 2
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)
 }
 

+ 0 - 8
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
 */