time: use `&C.time_t` instead of `&time_t` in C fn declaration (#11232)

pull/11234/head
JalonSolov 2021-08-18 10:05:43 -04:00 committed by GitHub
parent d2ce1f74d6
commit b3c641f7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ struct C.tm {
fn C.timegm(&C.tm) C.time_t fn C.timegm(&C.tm) C.time_t
// fn C.gmtime_r(&tm, &gbuf) // fn C.gmtime_r(&tm, &gbuf)
fn C.localtime_r(t &time_t, tm &C.tm) fn C.localtime_r(t &C.time_t, tm &C.tm)
fn make_unix_time(t C.tm) i64 { fn make_unix_time(t C.tm) i64 {
return i64(C.timegm(&t)) return i64(C.timegm(&t))