1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

View File

@ -21,7 +21,7 @@ struct C.tm {
fn C.timegm(&C.tm) C.time_t
// 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 {
return i64(C.timegm(&t))