diff --git a/src/header/time/mod.rs b/src/header/time/mod.rs index 0ad01720eb191c6d5f7b23b493d441929ac12dcd..5ffe5d0488cc965ceb6abe6299ccf6cdc8254610 100644 --- a/src/header/time/mod.rs +++ b/src/header/time/mod.rs @@ -343,13 +343,13 @@ pub unsafe extern "C" fn time(tloc: *mut time_t) -> time_t { } #[no_mangle] -pub unsafe extern "C" fn timelocal(tm: *mut struct tm) -> time_t { +pub unsafe extern "C" fn timelocal(tm: *mut tm) -> time_t { //TODO: timezone timegm(tm) } #[no_mangle] -pub unsafe extern "C" fn timegm(tm: *mut struct tm) -> time_t { +pub unsafe extern "C" fn timegm(tm: *mut tm) -> time_t { let mut y = (*tm).tm_year as time_t + 1900; let mut m = (*tm).tm_mon as time_t + 1; if m <= 2 {