forked from lug/matterbridge
Update dependencies and remove old matterclient lib (#2067)
This commit is contained in:
12
vendor/modernc.org/libc/libc_freebsd.go
generated
vendored
12
vendor/modernc.org/libc/libc_freebsd.go
generated
vendored
@@ -171,11 +171,7 @@ var localtime time.Tm
|
||||
|
||||
// struct tm *localtime(const time_t *timep);
|
||||
func Xlocaltime(_ *TLS, timep uintptr) uintptr {
|
||||
loc := gotime.Local
|
||||
if r := getenv(Environ(), "TZ"); r != 0 {
|
||||
zone, off := parseZone(GoString(r))
|
||||
loc = gotime.FixedZone(zone, -off)
|
||||
}
|
||||
loc := getLocalLocation()
|
||||
ut := *(*time.Time_t)(unsafe.Pointer(timep))
|
||||
t := gotime.Unix(int64(ut), 0).In(loc)
|
||||
localtime.Ftm_sec = int32(t.Second())
|
||||
@@ -192,11 +188,7 @@ func Xlocaltime(_ *TLS, timep uintptr) uintptr {
|
||||
|
||||
// struct tm *localtime_r(const time_t *timep, struct tm *result);
|
||||
func Xlocaltime_r(_ *TLS, timep, result uintptr) uintptr {
|
||||
loc := gotime.Local
|
||||
if r := getenv(Environ(), "TZ"); r != 0 {
|
||||
zone, off := parseZone(GoString(r))
|
||||
loc = gotime.FixedZone(zone, -off)
|
||||
}
|
||||
loc := getLocalLocation()
|
||||
ut := *(*unix.Time_t)(unsafe.Pointer(timep))
|
||||
t := gotime.Unix(int64(ut), 0).In(loc)
|
||||
(*time.Tm)(unsafe.Pointer(result)).Ftm_sec = int32(t.Second())
|
||||
|
||||
Reference in New Issue
Block a user